Package boofcv.alg.segmentation.cc
Class ConnectedNaiveSpeckleFiller_Int<T extends GrayI<T>>
java.lang.Object
boofcv.alg.segmentation.cc.ConnectedNaiveSpeckleFiller_Int<T>
- All Implemented Interfaces:
ConnectedSpeckleFiller<T>
public class ConnectedNaiveSpeckleFiller_Int<T extends GrayI<T>>
extends Object
implements ConnectedSpeckleFiller<T>
Naive implementation of connected-component based speckle filler. A labeled image is created for each blob. When
a new region is encountered it is filled by growing a region. The grow region algorithm works by having an open
list of unexplored pixels. The top of the list is selected and its neighbors checked to see they are also members,
if so they are added to the open list.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of filled in regionsvoidFinds non-smooth regions and fills them in with the fill value.
-
Constructor Details
-
ConnectedNaiveSpeckleFiller_Int
-
-
Method Details
-
process
Description copied from interface:ConnectedSpeckleFillerFinds non-smooth regions and fills them in with the fill value. Uses 4-connect rule.- Specified by:
processin interfaceConnectedSpeckleFiller<T extends GrayI<T>>- Parameters:
image- (Input, Output) Image which is searched for speckle noise which is then filled inmaximumArea- (Input) All regions with this number of pixels or fewer will be filled in.similarTol- (Input) Two pixels are connected if their different in value is ≤ than this.fillValue- (Input) The value that small regions are filled in with.
-
getTotalFilled
public int getTotalFilled()Description copied from interface:ConnectedSpeckleFillerReturns the number of filled in regions- Specified by:
getTotalFilledin interfaceConnectedSpeckleFiller<T extends GrayI<T>>
-
getImageType
- Specified by:
getImageTypein interfaceConnectedSpeckleFiller<T extends GrayI<T>>
-