Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::filter::MotionSensitiveTemporalSmoothing Class Reference

#include <MotionSensitiveTemporalSmoothing.h>

Inheritance diagram for icl::filter::MotionSensitiveTemporalSmoothing:
icl::filter::UnaryOp icl::utils::Uncopyable icl::utils::Configurable

List of all members.

Public Member Functions

 MotionSensitiveTemporalSmoothing (int iNullValue, int iMaxFilterSize)
 creates a new MotionSensitiveTemporalSmoothing filter with given parameters
 ~MotionSensitiveTemporalSmoothing ()
 Destructor.
virtual void apply (const core::ImgBase *src, core::ImgBase **dst)
 applies the MotionSensitiveTemporalSmoothing
void setUseCL (bool use)
 Sets openCL enabled/disabled. Enabling has no effect if no openCL context is available. (default true=enabled)
void setFilterSize (int filterSize)
 Sets the filter size (smaller than maxFilterSize in Constructor)
void setDifference (int difference)
 Sets the difference separating noise from movement (smaller=noise, bigger=movement)
core::Img32f getMotionImage ()
 Returns the motionImage (visualize the movement in the image, usable as motion detector)
bool isCLActive ()
 Returns the openCL activation status (true=openCL enabled, false=openCL disabled). The status can be set by setUseCL(bool use).

Private Member Functions

void init (int iChannels, core::depth iDepth, utils::Size iSize)

Private Attributes

bool useCL
int currentFilterSize
int currentDifference
int nullValue
int maxFilterSize
int numChannels
utils::Size size
core::depth depth
std::vector
< TemporalSmoothingCL * > 
clPointer

Constructor & Destructor Documentation

creates a new MotionSensitiveTemporalSmoothing filter with given parameters

Parameters:
iNullValuethe value with no image information (e.g. Kinect data) -1=no nullValues
iMaxFilterSizethe maximum size of the filter

Destructor.


Member Function Documentation

virtual void icl::filter::MotionSensitiveTemporalSmoothing::apply ( const core::ImgBase src,
core::ImgBase **  dst 
) [virtual]

applies the MotionSensitiveTemporalSmoothing

Parameters:
srcthe source image
dstpointer to the destination image

Implements icl::filter::UnaryOp.

Returns the motionImage (visualize the movement in the image, usable as motion detector)

Returns:
the motion image
void icl::filter::MotionSensitiveTemporalSmoothing::init ( int  iChannels,
core::depth  iDepth,
utils::Size  iSize 
) [private]

Returns the openCL activation status (true=openCL enabled, false=openCL disabled). The status can be set by setUseCL(bool use).

Returns:
openCL enabled/disabled

Sets the difference separating noise from movement (smaller=noise, bigger=movement)

Parameters:
differencethe difference

Sets the filter size (smaller than maxFilterSize in Constructor)

Parameters:
filterSizethe filter size

Sets openCL enabled/disabled. Enabling has no effect if no openCL context is available. (default true=enabled)

Parameters:
useenable/disable openCL

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines