Class CVFindContours

Object
CVFindContours

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

    • contoursForObject

      public static List<Contour> contoursForObject(ObjectMask object) throws 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:
      OperationFailedException - if the countour cannot be calculated.