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
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doWatershed
(SimpleImage ip, SimpleModifiableImage ipLabels, boolean conn8) Apply a 2D watershed transform.static void
doWatershed
(SimpleImage ip, SimpleModifiableImage ipLabels, double minThreshold, boolean conn8) Apply a 2D watershed transform, constraining region growing using an intensity threshold.
-
Constructor Details
-
Watershed
public Watershed()
-
-
Method Details
-
doWatershed
Apply a 2D watershed transform.- Parameters:
ip
- image containing intensity informationipLabels
- image containing starting labels; these will be modifiedconn8
- true if 8-connectivity should be used; alternative is 4-connectivity
-
doWatershed
public 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 informationipLabels
- image containing starting labels; these will be modifiedminThreshold
- minimum threshold; labels will not expand into pixels with values below the thresholdconn8
- true if 8-connectivity should be used; alternative is 4-connectivity
-