Class BinaryLabelContourFinderChang2004

    • Constructor Detail

      • BinaryLabelContourFinderChang2004

        public BinaryLabelContourFinderChang2004()
    • Method Detail

      • process

        public void process​(boofcv.struct.image.GrayU8 binary,
                            boofcv.struct.image.GrayS32 labeled)
        Description copied from interface: BinaryLabelContourFinder
        Processes the binary image to find the contour of and label blobs.
        Specified by:
        process in interface BinaryLabelContourFinder
        Parameters:
        binary - Input binary image. Not modified.
        labeled - Output. Labeled image. Modified.
      • loadContour

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

        public void writeContour​(int contourID,
                                 java.util.List<georegression.struct.point.Point2D_I32> list)
        Description copied from interface: BinaryContourInterface
        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
        Specified by:
        writeContour in interface BinaryContourInterface
        Parameters:
        contourID - ID of the contour you wish to load
        list - Storage for the contour points. Must be set to declare new elements.
      • setSaveInnerContour

        public void setSaveInnerContour​(boolean enabled)
        Description copied from interface: BinaryContourInterface
        Used to toggle on and off the saving of inner contours.
        Specified by:
        setSaveInnerContour in interface BinaryContourInterface
        Parameters:
        enabled - true to enable or false to disable