DeNoise Filter

The DeNoise filter reduces noise in the frames by averaging a number of frames.

Using the DeNoise Filter

The DeNoise filter is loaded by an application using the following code:

        // Load the DeNoise filter from the stdfilters.ftf module.
#ifdef _DEBUG
    smart_com<IFrameFilter> pFilter = FilterLoader::createFilter( "DeNoise",   // Filter name.
                                                                  "stdfiltersd.ftf" ); // Module file.
#else
    smart_com<IFrameFilter> pFilter = FilterLoader::createFilter( "DeNoise",   // Filter name.
                                                                  "stdfilters.ftf" ); // Module file.
#endif

Parameters

The only parameter of the DeNoise filter is the DeNoise Level:

DeNoise Level
The parameter DeNoise Level determines the number of frames to be averaged.
Note: The actual number of frames that are averaged is 2^n, so when setting DeNoise Level to 2, 4 frames are averaged.
This parameter can only be set while the live video stream is stopped.

Property Dialog

The number of frames to be averaged can be adjusted in the filter's property dialog:

image

Programmatically Access the Parameter

The following source code can be used, if the parameter should be set by an application:

long level = 0;
// Retrieve the current denoise level.
pFilter->getParameter( "DeNoise Level", level );
// Set a new denoise level.
level = 3;
if( m_Grabber.isLive() == false )
{
    // A new denoise level can only be set, while the live video is stopped.
    // Otherwise, an error is returned by setParameter().
    pFilter->setParameter( "DeNoise Level", level );
}

<< IC Imaging Control Standard Filters