Package boofcv.alg.segmentation.cc
Class ConnectedTwoRowSpeckleFiller_U8
java.lang.Object
boofcv.alg.segmentation.cc.ConnectedTwoRowSpeckleFiller<GrayU8>
boofcv.alg.segmentation.cc.ConnectedTwoRowSpeckleFiller_U8
- All Implemented Interfaces:
ConnectedSpeckleFiller<GrayU8>
Implementation of
ConnectedTwoRowSpeckleFiller for GrayU8.-
Field Summary
Fields inherited from class boofcv.alg.segmentation.cc.ConnectedTwoRowSpeckleFiller
totalFilled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillCluster(int seedX, int seedY, int clusterSize) Fill cluster by performing a search of connected pixels.protected voidfindConnectionsBetweenRows(int startRowA, int startRowB) Compres pxiel values between the two rows to find the mapping between the regions.protected voidinitTypeSpecific(double similarTol, double fillValue) protected intlabelRow(int idx0, int[] labels, int[] labelCount, int[] locationX) Applies connectivity rule along a single row in 1DMethods inherited from class boofcv.alg.segmentation.cc.ConnectedTwoRowSpeckleFiller
getTotalFilled, process, traverseToEnd
-
Constructor Details
-
ConnectedTwoRowSpeckleFiller_U8
public ConnectedTwoRowSpeckleFiller_U8()
-
-
Method Details
-
initTypeSpecific
protected void initTypeSpecific(double similarTol, double fillValue) - Specified by:
initTypeSpecificin classConnectedTwoRowSpeckleFiller<GrayU8>
-
labelRow
protected int labelRow(int idx0, int[] labels, int[] labelCount, int[] locationX) Description copied from class:ConnectedTwoRowSpeckleFillerApplies connectivity rule along a single row in 1D- Specified by:
labelRowin classConnectedTwoRowSpeckleFiller<GrayU8>labels- Array that stores labelslabelCount- Array that stores label counts- Returns:
- number of clusters
-
findConnectionsBetweenRows
protected void findConnectionsBetweenRows(int startRowA, int startRowB) Compres pxiel values between the two rows to find the mapping between the regions. This is also where "finished" regions in A are identified.- Specified by:
findConnectionsBetweenRowsin classConnectedTwoRowSpeckleFiller<GrayU8>- Parameters:
startRowA- Index of row in image arraystartRowB- Index of row in image array
-
fillCluster
protected void fillCluster(int seedX, int seedY, int clusterSize) Fill cluster by performing a search of connected pixels. This step can be slow and a memory hog if the regions are large. It's also effectively the naive algorithm- Specified by:
fillClusterin classConnectedTwoRowSpeckleFiller<GrayU8>
-
getImageType
-