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 (const core::Img32f &inputImage) |
Execution of the temporal smoothing for float images. | |
core::Img8u | temporalSmoothingC (const 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 |
float * | inputImage1ArrayF |
float * | inputImagesArrayF |
float * | outputImageArrayF |
unsigned char * | inputImage1ArrayC |
unsigned char * | inputImagesArrayC |
unsigned char * | outputImageArrayC |
float * | motionImageArray |
utils::CLProgram | program |
utils::CLKernel | kernelTemporalSmoothingFloat |
utils::CLKernel | kernelTemporalSmoothingChar |
utils::CLKernel | kernelCheckRANSAC |
utils::CLKernel | kernelAssignRANSAC |
utils::CLBuffer | inputImageBufferF |
utils::CLBuffer | outputImageBufferF |
utils::CLBuffer | inputImageBufferC |
utils::CLBuffer | outputImageBufferC |
utils::CLBuffer | motionImageBuffer |
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 |
core::Img8u icl::filter::TemporalSmoothingCL::temporalSmoothingC | ( | const core::Img8u & | inputImage | ) |
Execution of the temporal smoothing for uchar images.
inputImage | the next input image for the smoothing sequence |
core::Img32f icl::filter::TemporalSmoothingCL::temporalSmoothingF | ( | const core::Img32f & | inputImage | ) |
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] |
unsigned char* icl::filter::TemporalSmoothingCL::inputImage1ArrayC [private] |
float* icl::filter::TemporalSmoothingCL::inputImage1ArrayF [private] |
unsigned char* icl::filter::TemporalSmoothingCL::inputImagesArrayC [private] |
float* icl::filter::TemporalSmoothingCL::inputImagesArrayF [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] |
float* icl::filter::TemporalSmoothingCL::motionImageArray [private] |
int icl::filter::TemporalSmoothingCL::nullValue [private] |
unsigned char* icl::filter::TemporalSmoothingCL::outputImageArrayC [private] |
float* icl::filter::TemporalSmoothingCL::outputImageArrayF [private] |
bool icl::filter::TemporalSmoothingCL::useCL [private] |
int icl::filter::TemporalSmoothingCL::w [private] |