Image Component Library (ICL)
|
#include <MotionSensitiveTemporalSmoothing.h>
Public Member Functions | |
TemporalSmoothingCL (utils::Size size, core::depth depth, int iMaxFilterSize, int iNullValue) | |
creates a new TemporalSmoothingCL with given parameters (implementation of the MotionSensitiveTemporalSmoothing Filter) | |
~TemporalSmoothingCL () | |
Destructor. | |
core::Img32f | temporalSmoothingF (core::Img32f &inputImage) |
Execution of the temporal smoothing for float images. | |
core::Img8u | temporalSmoothingC (core::Img8u &inputImage) |
Execution of the temporal smoothing for uchar images. | |
void | setUseCL (bool use) |
Sets openCL enabled/disabled. Enabling has no effect if no openCL context is available. (default true=enabled) | |
void | setFilterSize (int iFilterSize) |
Sets the filter size (smaller than maxFilterSize in Constructor) | |
void | setDifference (int iDifference) |
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 | isCLReady () |
Returns the openCL status (true=openCL context ready, false=no openCL context available) | |
bool | isCLActive () |
Returns the openCL activation status (true=openCL enabled, false=openCL disabled). The status can be set by setUseCL(bool use). | |
Private Attributes | |
int | w |
int | h |
core::depth | d |
bool | clReady |
bool | useCL |
int | imgCount |
int | filterSize |
int | currentFilterSize |
int | maxFilterSize |
int | currentDifference |
int | nullValue |
std::vector< core::Img32f > | inputImagesF |
core::Img32f | outputImageF |
std::vector< core::Img8u > | inputImagesC |
core::Img8u | outputImageC |
core::Img32f | motionImage |
icl::filter::TemporalSmoothingCL::TemporalSmoothingCL | ( | utils::Size | size, |
core::depth | depth, | ||
int | iMaxFilterSize, | ||
int | iNullValue | ||
) |
creates a new TemporalSmoothingCL with given parameters (implementation of the MotionSensitiveTemporalSmoothing Filter)
size | size of the input image |
depth | depth of the image (32f and 8u supported) |
maxFilterSize | maximum size of the filter |
Destructor.
Returns the motionImage (visualize the movement in the image, usable as motion detector)
Returns the openCL activation status (true=openCL enabled, false=openCL disabled). The status can be set by setUseCL(bool use).
Returns the openCL status (true=openCL context ready, false=no openCL context available)
void icl::filter::TemporalSmoothingCL::setDifference | ( | int | iDifference | ) |
Sets the difference separating noise from movement (smaller=noise, bigger=movement)
iDifference | the difference |
void icl::filter::TemporalSmoothingCL::setFilterSize | ( | int | iFilterSize | ) |
Sets the filter size (smaller than maxFilterSize in Constructor)
iFilterSize | the filter size |
void icl::filter::TemporalSmoothingCL::setUseCL | ( | bool | use | ) |
Sets openCL enabled/disabled. Enabling has no effect if no openCL context is available. (default true=enabled)
use | enable/disable openCL |
Execution of the temporal smoothing for uchar images.
inputImage | the next input image for the smoothing sequence |
Execution of the temporal smoothing for float images.
inputImage | the next input image for the smoothing sequence |
bool icl::filter::TemporalSmoothingCL::clReady [private] |
int icl::filter::TemporalSmoothingCL::currentDifference [private] |
int icl::filter::TemporalSmoothingCL::currentFilterSize [private] |
int icl::filter::TemporalSmoothingCL::filterSize [private] |
int icl::filter::TemporalSmoothingCL::h [private] |
int icl::filter::TemporalSmoothingCL::imgCount [private] |
std::vector<core::Img8u> icl::filter::TemporalSmoothingCL::inputImagesC [private] |
std::vector<core::Img32f> icl::filter::TemporalSmoothingCL::inputImagesF [private] |
int icl::filter::TemporalSmoothingCL::maxFilterSize [private] |
int icl::filter::TemporalSmoothingCL::nullValue [private] |
bool icl::filter::TemporalSmoothingCL::useCL [private] |
int icl::filter::TemporalSmoothingCL::w [private] |