The DeNoise filter reduces noise in the frames by averaging a number of frames.
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
The only parameter of the DeNoise filter is the DeNoise Level:
The number of frames to be averaged can be adjusted in the filter's property dialog:
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 ); }