Package qupath.lib.analysis.algorithms
Class Watershed
java.lang.Object
qupath.lib.analysis.algorithms.Watershed
Implementation of 2D watershed transform.
 
TODO: Implement any further optimizations added to the ImageJ version
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddoWatershed(SimpleImage ip, SimpleModifiableImage ipLabels, boolean conn8) Apply a 2D watershed transform.static voiddoWatershed(SimpleImage ip, SimpleModifiableImage ipLabels, double minThreshold, boolean conn8) Apply a 2D watershed transform, constraining region growing using an intensity threshold.
- 
Constructor Details- 
Watershedpublic Watershed()
 
- 
- 
Method Details- 
doWatershedApply a 2D watershed transform.- Parameters:
- ip- image containing intensity information
- ipLabels- image containing starting labels; these will be modified
- conn8- true if 8-connectivity should be used; alternative is 4-connectivity
 
- 
doWatershedpublic static void doWatershed(SimpleImage ip, SimpleModifiableImage ipLabels, double minThreshold, boolean conn8) Apply a 2D watershed transform, constraining region growing using an intensity threshold.- Parameters:
- ip- image containing intensity information
- ipLabels- image containing starting labels; these will be modified
- minThreshold- minimum threshold; labels will not expand into pixels with values below the threshold
- conn8- true if 8-connectivity should be used; alternative is 4-connectivity
 
 
-