Public Member Functions | Private Member Functions
bbgm_view_maker< dist_type, func_type, Disambiguate > Class Template Reference

base class for objects that extract the mean from an image of distribution. More...

#include <bbgm_view_maker.h>

Inheritance diagram for bbgm_view_maker< dist_type, func_type, Disambiguate >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Private Member Functions

virtual const vcl_type_info & dist_typeid () const
 return the type_info for the distribution type.
virtual unsigned int max_components (const bbgm_image_sptr &dimg) const
 Return the maximum number of components if a mixture.
virtual bool apply (const bbgm_image_sptr &dimg, vil_image_view< double > &image, const double *fail_val, int component_idx=-1) const
 Compute the mean of the distribution image to produce a vil image.

Detailed Description

template<class dist_type, class func_type, class Disambiguate = void>
class bbgm_view_maker< dist_type, func_type, Disambiguate >

base class for objects that extract the mean from an image of distribution.

Definition at line 47 of file bbgm_view_maker.h.


Member Function Documentation

template<class dist_type , class func_type , class Disambiguate = void>
virtual bool bbgm_view_maker< dist_type, func_type, Disambiguate >::apply ( const bbgm_image_sptr dimg,
vil_image_view< double > &  image,
const double *  fail_val,
int  component_idx = -1 
) const [inline, private, virtual]

Compute the mean of the distribution image to produce a vil image.

Parameters:
component_idxindicated the component index to operate on. If < 0 or not a mixture then operate on the whole distribution

Implements bbgm_view_maker_base.

Definition at line 62 of file bbgm_view_maker.h.

template<class dist_type , class func_type , class Disambiguate = void>
virtual const vcl_type_info& bbgm_view_maker< dist_type, func_type, Disambiguate >::dist_typeid ( ) const [inline, private, virtual]

return the type_info for the distribution type.

Implements bbgm_view_maker_base.

Definition at line 51 of file bbgm_view_maker.h.

template<class dist_type , class func_type , class Disambiguate = void>
virtual unsigned int bbgm_view_maker< dist_type, func_type, Disambiguate >::max_components ( const bbgm_image_sptr dimg) const [inline, private, virtual]

Return the maximum number of components if a mixture.

If not a mixture return 1

Implements bbgm_view_maker_base.

Definition at line 56 of file bbgm_view_maker.h.


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