public class CVFindContours extends Object
Modifier and Type | Method and Description |
---|---|
static List<Contour> |
contoursForObject(ObjectMask object)
Calculates the extreme outer contours from an
ObjectMask as OpenCV defines contours. |
public static List<Contour> contoursForObject(ObjectMask object) throws OperationFailedException
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.
object
- the object whose contours should be found.OperationFailedException
- if the countour cannot be calculated.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.