Public Member Functions | Protected Attributes | Static Protected Attributes
bbgm_pair_group_feature Class Reference

A group of mask pair features with centers within a neighborhood. More...

#include <bbgm_features.h>

List of all members.

Public Member Functions

 bbgm_pair_group_feature ()
 bbgm_pair_group_feature (bbgm_mask_pair_feature const &mp)
 A group with a single pair.
void set_prob (vcl_set< bbgm_mask_pair_feature, fless >const &pairs, float p)
 set probability and vertices.
void set_prob (float p)
 set probability with existing vertices.
void set_mask_id (brip_rect_mask::mask_id mid)
 set the mask type of the group.
unsigned n_pairs () const
const vcl_set
< bbgm_mask_pair_feature,
fless > & 
pairs () const
float operator() () const
 probability for the pair group.
unsigned id () const
brip_rect_mask::mask_id mask_id () const
 the type of the mask group.
void center (unsigned short &ci, unsigned short &cj) const
vgl_box_2d< unsigned > bounding_box () const
 Bounding box.
vgl_polygon< double > convex_hull () const
 Convex hull.
vcl_vector< vgl_point_2d
< unsigned short > > 
pixels ()
 List of pixels in group ( + mask elements and paths).
virtual vcl_string is_a () const
 Return a string name.
virtual bbgm_pair_group_featureclone () 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.
virtual ~bbgm_pair_group_feature ()

Protected Attributes

unsigned id_
brip_rect_mask::mask_id mid_
 the mask type of the group
unsigned short ci_
 the center of the group
unsigned short cj_
vcl_set
< bbgm_mask_pair_feature,
fless
pairs_
float p_

Static Protected Attributes

static unsigned uid_ = 0
 a unique id

Detailed Description

A group of mask pair features with centers within a neighborhood.

The set is defined by the pair center locations

Definition at line 246 of file bbgm_features.h.


Constructor & Destructor Documentation

bbgm_pair_group_feature::bbgm_pair_group_feature ( ) [inline]

Definition at line 249 of file bbgm_features.h.

bbgm_pair_group_feature::bbgm_pair_group_feature ( bbgm_mask_pair_feature const &  mp)

A group with a single pair.

Definition at line 295 of file bbgm_features.cxx.

virtual bbgm_pair_group_feature::~bbgm_pair_group_feature ( ) [inline, virtual]

Definition at line 321 of file bbgm_features.h.


Member Function Documentation

void bbgm_pair_group_feature::b_read ( vsl_b_istream is) [virtual]

Binary load self from stream.

Definition at line 436 of file bbgm_features.cxx.

void bbgm_pair_group_feature::b_write ( vsl_b_ostream os) const [virtual]

Binary save self to stream.

Definition at line 417 of file bbgm_features.cxx.

vgl_box_2d< unsigned > bbgm_pair_group_feature::bounding_box ( ) const

Bounding box.

compute a bounding box for the group based on the vertices.

Definition at line 307 of file bbgm_features.cxx.

void bbgm_pair_group_feature::center ( unsigned short &  ci,
unsigned short &  cj 
) const [inline]

Definition at line 290 of file bbgm_features.h.

bbgm_pair_group_feature * bbgm_pair_group_feature::clone ( ) const [virtual]

Definition at line 401 of file bbgm_features.cxx.

vgl_polygon< double > bbgm_pair_group_feature::convex_hull ( ) const

Convex hull.

Definition at line 323 of file bbgm_features.cxx.

unsigned bbgm_pair_group_feature::id ( ) const [inline]

Definition at line 285 of file bbgm_features.h.

vcl_string bbgm_pair_group_feature::is_a ( ) const [virtual]

Return a string name.

Note:
this is probably not portable

Definition at line 395 of file bbgm_features.cxx.

brip_rect_mask::mask_id bbgm_pair_group_feature::mask_id ( ) const [inline]

the type of the mask group.

Definition at line 288 of file bbgm_features.h.

unsigned bbgm_pair_group_feature::n_pairs ( ) const [inline]

Definition at line 277 of file bbgm_features.h.

float bbgm_pair_group_feature::operator() ( ) const [inline]

probability for the pair group.

Definition at line 283 of file bbgm_features.h.

const vcl_set<bbgm_mask_pair_feature, fless>& bbgm_pair_group_feature::pairs ( ) const [inline]

Definition at line 279 of file bbgm_features.h.

vcl_vector< vgl_point_2d< unsigned short > > bbgm_pair_group_feature::pixels ( )

List of pixels in group ( + mask elements and paths).

Definition at line 341 of file bbgm_features.cxx.

void bbgm_pair_group_feature::set_mask_id ( brip_rect_mask::mask_id  mid) [inline]

set the mask type of the group.

Definition at line 275 of file bbgm_features.h.

void bbgm_pair_group_feature::set_prob ( vcl_set< bbgm_mask_pair_feature, fless >const &  pairs,
float  p 
) [inline]

set probability and vertices.

Definition at line 253 of file bbgm_features.h.

void bbgm_pair_group_feature::set_prob ( float  p) [inline]

set probability with existing vertices.

Definition at line 272 of file bbgm_features.h.

short bbgm_pair_group_feature::version ( ) const

Return IO version number;.

Definition at line 409 of file bbgm_features.cxx.


Member Data Documentation

unsigned short bbgm_pair_group_feature::ci_ [protected]

the center of the group

Definition at line 326 of file bbgm_features.h.

unsigned short bbgm_pair_group_feature::cj_ [protected]

Definition at line 327 of file bbgm_features.h.

unsigned bbgm_pair_group_feature::id_ [protected]

Definition at line 324 of file bbgm_features.h.

brip_rect_mask::mask_id bbgm_pair_group_feature::mid_ [protected]

the mask type of the group

Definition at line 325 of file bbgm_features.h.

float bbgm_pair_group_feature::p_ [protected]

Definition at line 329 of file bbgm_features.h.

Definition at line 328 of file bbgm_features.h.

unsigned bbgm_pair_group_feature::uid_ = 0 [static, protected]

a unique id

Definition at line 323 of file bbgm_features.h.


The documentation for this class was generated from the following files: