#include <brip_watershed.h>
Inheritance diagram for brip_watershed:

Definition at line 40 of file brip_watershed.h.
Public Types | |
| enum | label { UNLABELED = 0, BOUNDARY = 1 } |
Public Member Functions | |
| brip_watershed (brip_watershed_params const &bwp) | |
| Constructors/destructor. | |
| ~brip_watershed () | |
| void | set_image (vil1_memory_image_of< float > const &image) |
| Accessors/Mutators. | |
| unsigned int | min_region_label () |
| unsigned int | max_region_label () |
| vil1_image | overlay_image () |
| vbl_array_2d< unsigned int > & | region_label_array () |
| bool | adjacent_regions (const unsigned int region, vcl_vector< unsigned int > &adj_regs) |
| bool | compute_regions () |
| Main process method. | |
| void | print_region_array () |
| Debug methods. | |
| void | print_adjacency_map () |
| bool | SanityCheck () |
| Checks that parameters are within acceptable bounds. | |
Public Attributes | |
| float | sigma_ |
| Standard deviation of the smoothing kernel. | |
| float | thresh_ |
| Threshold (min grad difference for a seed). | |
| bool | eight_connected_ |
| Neighborhood connectivity (8 vs 4). | |
| bool | verbose_ |
| output debug messages | |
Protected Member Functions | |
| void | print_neighborhood (int col, int row, unsigned int lab) |
| internal methods. | |
| bool | add_adjacency (const unsigned int reg, const unsigned int adj_reg) |
| add a region adjacency relation. Returns false if relation is already known. | |
| bool | compute_seeds () |
| Find points of local minima in gradient magnitude. | |
| bool | initialize_queue () |
| Initialize the priority queue from the seeds give each region a new label. | |
| bool | grow_regions () |
| Process the priority queue and grow regions. | |
| brip_watershed () | |
| members. | |
| void | InitParams (float sigma, float thresh, bool eight_connected, bool verbose) |
Protected Attributes | |
| int | width_ |
| int | height_ |
| unsigned int | max_region_label_ |
| vbl_array_2d< unsigned int > | region_label_array_ |
| vil1_memory_image_of< float > | image_ |
| vil1_memory_image_of< float > | gradient_mag_image_ |
| vcl_priority_queue< brip_region_pixel_sptr, vcl_vector< brip_region_pixel_sptr >, brip_region_pixel::compare > | priority_queue_ |
| vcl_map< unsigned int, vcl_vector< unsigned int > * > | region_adjacency_ |
Friends | |
| vcl_ostream & | operator<< (vcl_ostream &, const brip_watershed_params &wp) |
|
|
Definition at line 43 of file brip_watershed.h. |
|
|
Constructors/destructor.
Definition at line 14 of file brip_watershed.cxx. |
|
|
Definition at line 20 of file brip_watershed.cxx. |
|
|
members.
|
|
||||||||||||
|
add a region adjacency relation. Returns false if relation is already known.
Definition at line 264 of file brip_watershed.cxx. |
|
||||||||||||
|
Definition at line 289 of file brip_watershed.cxx. |
|
|
Main process method.
Definition at line 304 of file brip_watershed.cxx. |
|
|
Find points of local minima in gradient magnitude. Label these points as seeds. Definition at line 114 of file brip_watershed.cxx. |
|
|
Process the priority queue and grow regions.
Definition at line 184 of file brip_watershed.cxx. |
|
|
Initialize the priority queue from the seeds give each region a new label.
Definition at line 158 of file brip_watershed.cxx. |
|
||||||||||||||||||||
|
Definition at line 24 of file brip_watershed_params.cxx. |
|
|
Definition at line 50 of file brip_watershed.h. |
|
|
Definition at line 49 of file brip_watershed.h. |
|
|
Definition at line 328 of file brip_watershed.cxx. |
|
|
Definition at line 71 of file brip_watershed.cxx. |
|
||||||||||||||||
|
internal methods.
Definition at line 42 of file brip_watershed.cxx. |
|
|
Debug methods.
Definition at line 29 of file brip_watershed.cxx. |
|
|
Definition at line 52 of file brip_watershed.h. |
|
|
Checks that parameters are within acceptable bounds.
Definition at line 37 of file brip_watershed_params.cxx. |
|
|
Accessors/Mutators.
Definition at line 88 of file brip_watershed.cxx. |
|
||||||||||||
|
Definition at line 59 of file brip_watershed_params.cxx. |
|
|
Neighborhood connectivity (8 vs 4).
Definition at line 38 of file brip_watershed_params.h. |
|
|
Definition at line 74 of file brip_watershed.h. |
|
|
Definition at line 70 of file brip_watershed.h. |
|
|
Definition at line 73 of file brip_watershed.h. |
|
|
Definition at line 71 of file brip_watershed.h. |
|
|
Definition at line 76 of file brip_watershed.h. |
|
|
Definition at line 77 of file brip_watershed.h. |
|
|
Definition at line 72 of file brip_watershed.h. |
|
|
Standard deviation of the smoothing kernel.
Definition at line 36 of file brip_watershed_params.h. |
|
|
Threshold (min grad difference for a seed).
Definition at line 37 of file brip_watershed_params.h. |
|
|
output debug messages
Definition at line 39 of file brip_watershed_params.h. |
|
|
Definition at line 69 of file brip_watershed.h. |
1.4.4