Class CVFindContours

Object
org.anchoranalysis.plugin.opencv.CVFindContours

public class CVFindContours
extends Object
Wrapper around OpenCV's findContours function.
  • Method Details

    • contoursForObject

      public static List<org.anchoranalysis.spatial.point.Contour> contoursForObject​(org.anchoranalysis.image.voxel.object.ObjectMask object) throws org.anchoranalysis.core.exception.OperationFailedException
      Calculates the extreme outer contours from an ObjectMask as OpenCV defines contours.

      The setting Imgproc.RETR_EXTERNAL defines 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.