Package org.anchoranalysis.plugin.opencv
Class CVFindContours
Object
org.anchoranalysis.plugin.opencv.CVFindContours
public class CVFindContours extends Object
Wrapper around OpenCV's findContours
function.
-
Method Summary
Modifier and Type Method Description static List<org.anchoranalysis.spatial.point.Contour>contoursForObject(org.anchoranalysis.image.voxel.object.ObjectMask object)Calculates the extreme outer contours from anObjectMaskas OpenCV defines contours.
-
Method Details
-
contoursForObject
public static List<org.anchoranalysis.spatial.point.Contour> contoursForObject(org.anchoranalysis.image.voxel.object.ObjectMask object) throws org.anchoranalysis.core.exception.OperationFailedExceptionCalculates the extreme outer contours from anObjectMaskas OpenCV defines contours.The setting
Imgproc.RETR_EXTERNALdefines the extreme outer contours. Please see the related OpenCV documentation.No approximation occurs of the contours' points.
- Parameters:
object- the object whose contours should be found.- Returns:
- a newly created list, containing the extreme outer contours.
- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the countour cannot be calculated.
-