Public Member Functions | Private Member Functions
bbgm_view_maker< dist_type, func_type, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type > 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, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type >:
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 bbgm_view_maker< dist_type, func_type, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type >

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

Specialization for mixtures

Definition at line 111 of file bbgm_view_maker.h.


Member Function Documentation

template<class dist_type , class func_type >
virtual bool bbgm_view_maker< dist_type, func_type, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type >::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 132 of file bbgm_view_maker.h.

template<class dist_type , class func_type >
virtual const vcl_type_info& bbgm_view_maker< dist_type, func_type, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type >::dist_typeid ( ) const [inline, private, virtual]

Return the type_info for the distribution type.

Implements bbgm_view_maker_base.

Definition at line 116 of file bbgm_view_maker.h.

template<class dist_type , class func_type >
virtual unsigned int bbgm_view_maker< dist_type, func_type, typename vpdt_enable_if< vpdt_is_mixture< dist_type > >::type >::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 121 of file bbgm_view_maker.h.


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