Package qupath.opencv.tools
Class ProcessingCV
java.lang.Object
qupath.opencv.tools.ProcessingCV
Static methods to enable existing code for watershed transforms and morphological reconstruction
to be applied to OpenCV images.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doWatershed
(Mat mat, Mat matLabels, boolean conn8) Apply a watershed transform.static void
doWatershed
(Mat mat, Mat matLabels, double minThreshold, boolean conn8) Apply an intensity-constrained watershed transform, preventing regions from expanding to pixels below a specified minimum thresholdstatic boolean
morphologicalReconstruction
(Mat matMarker, Mat matMask) Compute morphological reconstruction.
-
Constructor Details
-
ProcessingCV
public ProcessingCV()
-
-
Method Details
-
morphologicalReconstruction
Compute morphological reconstruction.- Parameters:
matMarker
-matMask
-- Returns:
-
doWatershed
Apply a watershed transform.- Parameters:
mat
- intensity imagematLabels
- starting locationsconn8
- if true, use 8-connectivity rather than 4-connectivity
-
doWatershed
Apply an intensity-constrained watershed transform, preventing regions from expanding to pixels below a specified minimum threshold- Parameters:
mat
- intensity imagematLabels
- starting locationsminThreshold
- minimum thresholdconn8
- if true, use 8-connectivity rather than 4-connectivity
-