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

#include <MotionSensitiveTemporalSmoothing.h>

List of all members.

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::Img32finputImagesF
core::Img32f outputImageF
std::vector< core::Img8uinputImagesC
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

Constructor & Destructor Documentation

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)

Parameters:
sizesize of the input image
depthdepth of the image (32f and 8u supported)
maxFilterSizemaximum size of the filter

Destructor.


Member Function Documentation

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

Returns:
the motion image

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

Returns:
openCL enabled/disabled

Returns the openCL status (true=openCL context ready, false=no openCL context available)

Returns:
openCL context ready/unavailable

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

Parameters:
iDifferencethe difference

Sets the filter size (smaller than maxFilterSize in Constructor)

Parameters:
iFilterSizethe filter size

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

Parameters:
useenable/disable openCL

Execution of the temporal smoothing for uchar images.

Parameters:
inputImagethe next input image for the smoothing sequence
Returns:
the smoothed image

Execution of the temporal smoothing for float images.

Parameters:
inputImagethe next input image for the smoothing sequence
Returns:
the smoothed image

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