base class for objects that extract the mean from an image of distribution. More...
#include <bbgm_view_maker.h>
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. |
base class for objects that extract the mean from an image of distribution.
Definition at line 47 of file bbgm_view_maker.h.
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.
component_idx | indicated 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.
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.
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.