1 #ifndef vil_region_finder_h_ 2 #define vil_region_finder_h_ 13 # include <vcl_msvc_warnings.h> 35 template <
class pix_type,
class predicate_type = std::equal_to<pix_type> >
56 std::vector<unsigned>& ri,
57 std::vector<unsigned>& rj );
69 std::vector<unsigned>& ri,
70 std::vector<unsigned>& rj );
97 int const (*nbr_delta_)[2];
106 #endif // vil_region_finder_h_ Concrete view of image data of type T held in memory.
image_view const & image() const
The image from which the regions are being extracted.
vil_image_view< bool > const & boolean_region_image() const
boolean mask on the region.
vil_image_view< bool > processed_
The marks.
void same_int_region(unsigned i, unsigned j, std::vector< unsigned > &ri, std::vector< unsigned > &rj)
Extract the region containing (i,j).
vil_region_finder_connectivity
Type of connectivity to use in finding the regions.
void init(vil_region_finder_connectivity)
Marks all pixels as unprocessed, and sets the neighbour deltas based on the requested connectivity.
vil_image_view< pix_type > image_view
A base class reference-counting view of some image data.
image_view const image_
The image.
predicate_type predi_
predicate.
vil_region_finder(image_view const &image, vil_region_finder_connectivity conn=vil_region_finder_4_conn)
Prepare to extract regions from image.
Extract regions from an image using a flood-fill.
unsigned num_nbrs_
The size of the nbr_delta_ array.