opentl::modalities::BackgroundSub Class Reference

foreground/background segmentation modality More...

Inherits opentl::modalities::Modality.

List of all members.

Public Types


Public Member Functions

 BackgroundSub (const BackgroundSub &b)
 Copy Constructor.
 BackgroundSub (opentl::modelprojection::Warp *warp, opentl::modelprojection::GLScene *scene, int camIdx)
 Modality for background subtraction and matching purpose.
virtual modalities::Modalityclone () const
 Clone the current instance.
virtual void init ()
 Needed init() method for parameter handling.
virtual int matchPixLevel (const TargetPtrVector &targets, T_MEAS_PIXPtrVector &outputMeas, std::size_t partitionIdx)
 Matching on pixel level
  • compare pixel-level image data with expected map, by projecting model data under a predicted state.

virtual int preProcess (const opentl::core::cvdata::Image &image)
 Preprocessing and segmentation in order to get model free unassociated data.
virtual void setAverageTargetArea (unsigned int area)
 Set the average target area for matching.
virtual ~BackgroundSub ()
 Destructor.


Detailed Description

foreground/background segmentation modality

Member Enumeration Documentation

Common flags to all modalities: they specify which field will be filled in the output measurement, inside the matchXLevel() function. Default values = all true.

Enumerator:
matchUsingIntegralImage 
preProcessBackgroundSubParam 
OFFLINE_COUNT 

Reimplemented from opentl::modalities::Modality.

Enumerator:
matchPixelRInvVariance 
matchUseHypos 
preProcess_waitForFinished 
ONLINE_COUNT 

Reimplemented from opentl::modalities::Modality.


Constructor & Destructor Documentation

opentl::modalities::BackgroundSub::BackgroundSub ( opentl::modelprojection::Warp warp,
opentl::modelprojection::GLScene scene,
int  camIdx 
)

Modality for background subtraction and matching purpose.

Parameters:
warp global instance of a warp class
scene global instance of a GLScene class
camIdx camera index
param Additional parameters for the background subtractor

opentl::modalities::BackgroundSub::BackgroundSub ( const BackgroundSub b  ) 

Copy Constructor.

Parameters:
b Source BackgroundSub instance

virtual opentl::modalities::BackgroundSub::~BackgroundSub (  )  [virtual]

Destructor.


Member Function Documentation

virtual modalities::Modality* opentl::modalities::BackgroundSub::clone (  )  const [virtual]

Clone the current instance.

Returns:
Pointer to a newly created identical instance

Implements opentl::modalities::Modality.

virtual void opentl::modalities::BackgroundSub::init (  )  [virtual]

Needed init() method for parameter handling.

Reimplemented from opentl::modalities::Modality.

virtual int opentl::modalities::BackgroundSub::matchPixLevel ( const TargetPtrVector targets,
T_MEAS_PIXPtrVector outputMeas,
std::size_t  partitionIdx 
) [virtual]

Matching on pixel level

  • compare pixel-level image data with expected map, by projecting model data under a predicted state.

Parameters:
states Predicted state
outputMeas Pixel-space measurement (can be a pixel map of residuals, or a unique residual value)

Reimplemented from opentl::modalities::Modality.

virtual int opentl::modalities::BackgroundSub::preProcess ( const opentl::core::cvdata::Image image  )  [virtual]

Preprocessing and segmentation in order to get model free unassociated data.

Parameters:
sensData Input sensor data (e.g. camera image in RGB)

virtual void opentl::modalities::BackgroundSub::setAverageTargetArea ( unsigned int  area  )  [virtual]

Set the average target area for matching.

Parameters:
area Area to be set


Generated on Fri Jul 31 17:38:39 2009 for OpenTL by  doxygen 1.5.8