IC Imaging Control C++

DeNoise Filter

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

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us