Class ConnectedNaiveSpeckleFiller_F32

java.lang.Object
boofcv.alg.segmentation.cc.ConnectedNaiveSpeckleFiller_F32
All Implemented Interfaces:
ConnectedSpeckleFiller<GrayF32>

public class ConnectedNaiveSpeckleFiller_F32 extends Object implements ConnectedSpeckleFiller<GrayF32>
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.
  • Constructor Details

    • ConnectedNaiveSpeckleFiller_F32

      public ConnectedNaiveSpeckleFiller_F32()
  • Method Details

    • process

      public void process(GrayF32 image, int maximumArea, double similarTol, double fillValue)
      Description copied from interface: ConnectedSpeckleFiller
      Finds non-smooth regions and fills them in with the fill value. Uses 4-connect rule.
      Specified by:
      process in interface ConnectedSpeckleFiller<GrayF32>
      Parameters:
      image - (Input, Output) Image which is searched for speckle noise which is then filled in
      maximumArea - (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: ConnectedSpeckleFiller
      Returns the number of filled in regions
      Specified by:
      getTotalFilled in interface ConnectedSpeckleFiller<GrayF32>
    • getImageType

      public ImageType<GrayF32> getImageType()
      Specified by:
      getImageType in interface ConnectedSpeckleFiller<GrayF32>