FgBgSegment::ColorModel Class Reference

Color model class. More...

#include <fgbgsegment.h>

Inheritance diagram for FgBgSegment::ColorModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ColorModel (const ColorModel &model)
 Copy Constructor.
 ColorModel (FgBgSegment &segm)
 Constructor.
void CreateHistogram (Image< uint8_t > &mask, bool allPoints)
 Creates the colour histograms.
float CreateHistogram (Image< float > &probabilities, bool allPoints)
 Creates the disparity histogram.
void NormalizeHist (float *const histogram, float *const cost, int size)
ColorModeloperator= (const ColorModel &model)
 Copy color and cost histograms to destination color model.
void SmoothAndNormalizeHist (float const *hist, float const *phist, int size, float *const histogram, float *const cost)
 Normalises histograms.
virtual void Update ()
 Updates the histograms.
 ~ColorModel ()

Public Attributes

float colorcost [hist_size *hist_size]
float greycost [hist_size]
float greyhist [hist_size]
float histogram [hist_size *hist_size]
ColorModelprior
 Prior Color model.

Static Public Attributes

static const float weight = 0.01

Protected Attributes

FgBgSegmentsegm
 Segmentation object.

Detailed Description

Color model class.

Definition at line 117 of file fgbgsegment.h.


Constructor & Destructor Documentation

FgBgSegment::ColorModel::ColorModel ( FgBgSegment segm  ) 

Constructor.

Parameters:
segm Segmentation

Definition at line 90 of file fgbgsegment.cpp.

FgBgSegment::ColorModel::ColorModel ( const ColorModel model  ) 

Copy Constructor.

Parameters:
model Color model

Definition at line 97 of file fgbgsegment.cpp.

FgBgSegment::ColorModel::~ColorModel (  ) 

Definition at line 116 of file fgbgsegment.cpp.


Member Function Documentation

void FgBgSegment::ColorModel::CreateHistogram ( Image< uint8_t > &  mask,
bool  allPoints 
)

Creates the colour histograms.

Parameters:
mask Binary segmentation mask of which all inside the segmentation is considered for the histogram

Definition at line 1055 of file fgbgsegment.cpp.

float FgBgSegment::ColorModel::CreateHistogram ( Image< float > &  probabilities,
bool  allPoints 
)

Creates the disparity histogram.

Parameters:
probabilities Probabilities of each pixel to belong to that specific model.
allPoints If true all pixels are included. If false only those pixels with a disparity value within the range are considered.
Returns:
Sum of the probabilities

Definition at line 918 of file fgbgsegment.cpp.

void FgBgSegment::ColorModel::NormalizeHist ( float *const   histogram,
float *const   cost,
int  size 
)

Definition at line 1041 of file fgbgsegment.cpp.

FgBgSegment::ColorModel & FgBgSegment::ColorModel::operator= ( const ColorModel model  ) 

Copy color and cost histograms to destination color model.

Definition at line 107 of file fgbgsegment.cpp.

void FgBgSegment::ColorModel::SmoothAndNormalizeHist ( float const *  hist,
float const *  phist,
int  size,
float *const   histogram,
float *const   cost 
)

Normalises histograms.

Definition at line 1002 of file fgbgsegment.cpp.

virtual void FgBgSegment::ColorModel::Update (  )  [inline, virtual]

Updates the histograms.

Reimplemented in FgBgSegment::FlatSurface, FgBgSegment::Foreground, and FgBgSegment::Background.

Definition at line 157 of file fgbgsegment.h.


Member Data Documentation

Definition at line 127 of file fgbgsegment.h.

Definition at line 128 of file fgbgsegment.h.

Definition at line 126 of file fgbgsegment.h.

Definition at line 125 of file fgbgsegment.h.

Prior Color model.

Definition at line 130 of file fgbgsegment.h.

Segmentation object.

Definition at line 120 of file fgbgsegment.h.

const float FgBgSegment::ColorModel::weight = 0.01 [static]

Definition at line 123 of file fgbgsegment.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines


active_realtime_segmentation
Author(s): Marten Bjorkman. Maintained by Jeannette Bohg
autogenerated on Fri Jan 11 09:51:13 2013