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:
[C#]
FrameFilter DeNoiseFilter; DeNoiseFilter = ICImagingControl1.FrameFilterCreate("DeNoise", ""); if( DeNoiseFilter == null ) MessageBox.Show("Failed to create DeNoiseFilter"); else ICImagingControl1.DeviceFrameFilters.Add(DeNoiseFilter);
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:
[C#]
// Retrieve the current denoise level. int level = DeNoiseFilter.GetIntParameter("DeNoise Level"); // Set a new denoise level. level = 3; if( !ICImagingControl1.LiveVideoRunning ) { // A new denoise level can only be set, while the live video is stopped. DeNoiseFilter.SetIntParameter("DeNoise Level2", level); }