Interface BinaryContourInterface

    • Method Detail

      • getContours

        java.util.List<ContourPacked> getContours()
        Returns a list of contours/blobs found. WARNING: List is recycled on the next call to process().
        Returns:
        List of contours.
      • loadContour

        void loadContour​(int contourID,
                         org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> storage)
        Used to load the pixels associated with a contour.
        Parameters:
        contourID - ID of the contour you wish to load
        storage - Storage for the contour points. Must be set to declare new elements.
      • writeContour

        void writeContour​(int contourID,
                          java.util.List<georegression.struct.point.Point2D_I32> storage)
        Overwrites the coordinates of the saved contour. Useful when points have been undistorted and you're trying to minimize memory by not saving another copy
        Parameters:
        contourID - ID of the contour you wish to load
        storage - Storage for the contour points. Must be set to declare new elements.
      • setSaveInnerContour

        void setSaveInnerContour​(boolean enabled)
        Used to toggle on and off the saving of inner contours.
        Parameters:
        enabled - true to enable or false to disable
      • isSaveInternalContours

        boolean isSaveInternalContours()
      • setMinContour

        void setMinContour​(int length)
      • getMinContour

        int getMinContour()
      • setMaxContour

        void setMaxContour​(int length)
      • getMaxContour

        int getMaxContour()
      • setConnectRule

        void setConnectRule​(boofcv.struct.ConnectRule rule)
      • getConnectRule

        boofcv.struct.ConnectRule getConnectRule()
      • copyContour

        static java.util.List<georegression.struct.point.Point2D_I32> copyContour​(BinaryContourInterface finder,
                                                                                  int contourID)
        Convenience function which loads a contour and creates copy of all the points and returns a new list
        Returns:
        New copy of contour