A pair of mask features with intervening foreground probability. More...
#include <bbgm_features.h>
Public Member Functions | |
| bbgm_mask_pair_feature () | |
| void | set_prob (unsigned short i0, unsigned short j0, unsigned short i1, unsigned short j1, float p) |
| void | set_mask_type (brip_rect_mask::mask_id mid) |
| void | set_angles (brip_rect_mask::ang_id ang0, brip_rect_mask::ang_id ang1) |
| void | set_ids (unsigned id0, unsigned id1) |
| set the unique id of each mask. | |
| void | x0 (unsigned short &i0, unsigned short &j0) const |
| location of each mask in the pair. | |
| void | x1 (unsigned short &i1, unsigned short &j1) const |
| brip_rect_mask::mask_id | mask_id () const |
| the type of the mask pair. | |
| brip_rect_mask::ang_id | ang0 () const |
| the orientation of mask 0. | |
| brip_rect_mask::ang_id | ang1 () const |
| the orientation of mask 1. | |
| unsigned | id0 () const |
| the id of mask 0. | |
| unsigned | id1 () const |
| the id of mask 1. | |
| void | center (unsigned short &ic, unsigned short &jc) const |
| float | operator() () const |
| probability for the mask pair. | |
| unsigned | id () const |
| pair id. | |
| vcl_vector< vgl_point_2d < unsigned short > > | pixels () |
| The pixels in the pair (positive mask elements + path pixels). | |
| virtual vcl_string | is_a () const |
| Return a string name. | |
| virtual bbgm_mask_pair_feature * | clone () const |
| short | version () const |
| Return IO version number;. | |
| virtual void | b_write (vsl_b_ostream &os) const |
| Binary save self to stream. | |
| virtual void | b_read (vsl_b_istream &is) |
| Binary load self from stream. | |
Protected Attributes | |
| unsigned | id_ |
| brip_rect_mask::mask_id | mid_ |
| type of masks in the pair | |
| brip_rect_mask::ang_id | ang0_ |
| orientation of mask 0 | |
| brip_rect_mask::ang_id | ang1_ |
| orientation of mask 1 | |
| unsigned short | i0_ |
| unsigned short | j0_ |
| first mask location of the mask pair | |
| unsigned short | i1_ |
| unsigned short | j1_ |
| second mask location of the mask pair | |
| unsigned | id0_ |
| unsigned | id1_ |
| float | p_ |
Static Protected Attributes | |
| static unsigned | uid_ = 0 |
| a unique id | |
A pair of mask features with intervening foreground probability.
The pair is stored at each paired mask location
Definition at line 120 of file bbgm_features.h.
| bbgm_mask_pair_feature::bbgm_mask_pair_feature | ( | ) | [inline] |
Definition at line 123 of file bbgm_features.h.
| brip_rect_mask::ang_id bbgm_mask_pair_feature::ang0 | ( | ) | const [inline] |
the orientation of mask 0.
Definition at line 150 of file bbgm_features.h.
| brip_rect_mask::ang_id bbgm_mask_pair_feature::ang1 | ( | ) | const [inline] |
the orientation of mask 1.
Definition at line 153 of file bbgm_features.h.
| void bbgm_mask_pair_feature::b_read | ( | vsl_b_istream & | is | ) | [virtual] |
Binary load self from stream.
Definition at line 238 of file bbgm_features.cxx.
| void bbgm_mask_pair_feature::b_write | ( | vsl_b_ostream & | os | ) | const [virtual] |
Binary save self to stream.
Definition at line 221 of file bbgm_features.cxx.
| void bbgm_mask_pair_feature::center | ( | unsigned short & | ic, |
| unsigned short & | jc | ||
| ) | const [inline] |
Definition at line 161 of file bbgm_features.h.
| bbgm_mask_pair_feature * bbgm_mask_pair_feature::clone | ( | ) | const [virtual] |
Definition at line 205 of file bbgm_features.cxx.
| unsigned bbgm_mask_pair_feature::id | ( | ) | const [inline] |
pair id.
Definition at line 170 of file bbgm_features.h.
| unsigned bbgm_mask_pair_feature::id0 | ( | ) | const [inline] |
the id of mask 0.
Definition at line 156 of file bbgm_features.h.
| unsigned bbgm_mask_pair_feature::id1 | ( | ) | const [inline] |
the id of mask 1.
Definition at line 159 of file bbgm_features.h.
| vcl_string bbgm_mask_pair_feature::is_a | ( | ) | const [virtual] |
Return a string name.
Definition at line 199 of file bbgm_features.cxx.
| brip_rect_mask::mask_id bbgm_mask_pair_feature::mask_id | ( | ) | const [inline] |
the type of the mask pair.
Definition at line 147 of file bbgm_features.h.
| float bbgm_mask_pair_feature::operator() | ( | ) | const [inline] |
probability for the mask pair.
Definition at line 167 of file bbgm_features.h.
| vcl_vector< vgl_point_2d< unsigned short > > bbgm_mask_pair_feature::pixels | ( | ) |
The pixels in the pair (positive mask elements + path pixels).
Definition at line 140 of file bbgm_features.cxx.
| void bbgm_mask_pair_feature::set_angles | ( | brip_rect_mask::ang_id | ang0, |
| brip_rect_mask::ang_id | ang1 | ||
| ) | [inline] |
Definition at line 135 of file bbgm_features.h.
| void bbgm_mask_pair_feature::set_ids | ( | unsigned | id0, |
| unsigned | id1 | ||
| ) | [inline] |
set the unique id of each mask.
Definition at line 140 of file bbgm_features.h.
| void bbgm_mask_pair_feature::set_mask_type | ( | brip_rect_mask::mask_id | mid | ) | [inline] |
Definition at line 134 of file bbgm_features.h.
| void bbgm_mask_pair_feature::set_prob | ( | unsigned short | i0, |
| unsigned short | j0, | ||
| unsigned short | i1, | ||
| unsigned short | j1, | ||
| float | p | ||
| ) | [inline] |
Definition at line 127 of file bbgm_features.h.
| short bbgm_mask_pair_feature::version | ( | ) | const |
Return IO version number;.
Definition at line 213 of file bbgm_features.cxx.
| void bbgm_mask_pair_feature::x0 | ( | unsigned short & | i0, |
| unsigned short & | j0 | ||
| ) | const [inline] |
location of each mask in the pair.
Definition at line 143 of file bbgm_features.h.
| void bbgm_mask_pair_feature::x1 | ( | unsigned short & | i1, |
| unsigned short & | j1 | ||
| ) | const [inline] |
Definition at line 144 of file bbgm_features.h.
brip_rect_mask::ang_id bbgm_mask_pair_feature::ang0_ [protected] |
orientation of mask 0
Definition at line 198 of file bbgm_features.h.
brip_rect_mask::ang_id bbgm_mask_pair_feature::ang1_ [protected] |
orientation of mask 1
Definition at line 199 of file bbgm_features.h.
unsigned short bbgm_mask_pair_feature::i0_ [protected] |
Definition at line 200 of file bbgm_features.h.
unsigned short bbgm_mask_pair_feature::i1_ [protected] |
Definition at line 201 of file bbgm_features.h.
unsigned bbgm_mask_pair_feature::id0_ [protected] |
Definition at line 202 of file bbgm_features.h.
unsigned bbgm_mask_pair_feature::id1_ [protected] |
Definition at line 202 of file bbgm_features.h.
unsigned bbgm_mask_pair_feature::id_ [protected] |
Definition at line 196 of file bbgm_features.h.
unsigned short bbgm_mask_pair_feature::j0_ [protected] |
first mask location of the mask pair
Definition at line 200 of file bbgm_features.h.
unsigned short bbgm_mask_pair_feature::j1_ [protected] |
second mask location of the mask pair
Definition at line 201 of file bbgm_features.h.
brip_rect_mask::mask_id bbgm_mask_pair_feature::mid_ [protected] |
type of masks in the pair
Definition at line 197 of file bbgm_features.h.
float bbgm_mask_pair_feature::p_ [protected] |
Definition at line 203 of file bbgm_features.h.
unsigned bbgm_mask_pair_feature::uid_ = 0 [static, protected] |
a unique id
Definition at line 195 of file bbgm_features.h.
1.7.5.1