Image Component Library (ICL)
|
#include <MotionSensitiveTemporalSmoothing.h>
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 |
icl::filter::MotionSensitiveTemporalSmoothing::MotionSensitiveTemporalSmoothing | ( | int | iNullValue, |
int | iMaxFilterSize | ||
) |
creates a new MotionSensitiveTemporalSmoothing filter with given parameters
iNullValue | the value with no image information (e.g. Kinect data) -1=no nullValues |
iMaxFilterSize | the maximum size of the filter |
virtual void icl::filter::MotionSensitiveTemporalSmoothing::apply | ( | const core::ImgBase * | src, |
core::ImgBase ** | dst | ||
) | [virtual] |
applies the MotionSensitiveTemporalSmoothing
src | the source image |
dst | pointer to the destination image |
Implements icl::filter::UnaryOp.
Returns the motionImage (visualize the movement in the image, usable as motion detector)
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).
void icl::filter::MotionSensitiveTemporalSmoothing::setDifference | ( | int | difference | ) |
Sets the difference separating noise from movement (smaller=noise, bigger=movement)
difference | the difference |
void icl::filter::MotionSensitiveTemporalSmoothing::setFilterSize | ( | int | filterSize | ) |
Sets the filter size (smaller than maxFilterSize in Constructor)
filterSize | the filter size |
void icl::filter::MotionSensitiveTemporalSmoothing::setUseCL | ( | bool | use | ) |
Sets openCL enabled/disabled. Enabling has no effect if no openCL context is available. (default true=enabled)
use | enable/disable openCL |
std::vector<TemporalSmoothingCL*> icl::filter::MotionSensitiveTemporalSmoothing::clPointer [private] |
int icl::filter::MotionSensitiveTemporalSmoothing::nullValue [private] |
bool icl::filter::MotionSensitiveTemporalSmoothing::useCL [private] |