SoDespeckleProcessing engine More...
#include <ImageViz/Engines/ImageFiltering/SmoothingAndDenoising/SoDespeckleProcessing.h>
Public Member Functions | |
SoDespeckleProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFVec3i32 | kernelSize |
SoSFImageDataAdapter | inImage |
SoSFFloat | thresholdFactor |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoDespeckleProcessing engine smooths an image replacing aberrant values by the mean value of their neighbors
For an introduction to image filters, see section Images Filters.
This engine smooths an image replacing aberrant values by the mean value of their neighbors. For each voxels of the input image, mean and standard deviation values of the rectangular neighbor's window are computed. The output image value is then given by:
Where is a user threshold factor on distance of current voxel gray level to the mean of its neighbors relatively to their standard deviation. The greater is, the stronger the blur is. This filter gives good results in case of impulse noise.
SoBilateralFilterProcessing, SoSigmaFilterProcessing, SoUnsharpMaskingProcessing.
computeMode | MODE_AUTO |
kernelSize | 3 3 3 |
inImage | NULL |
thresholdFactor | 1.0f |
SoDespeckleProcessing::SoDespeckleProcessing | ( | ) |
Constructor.
Select the compute Mode (2D or 3D or AUTO) Use enum ComputeMode.
Default is MODE_AUTO
The input image.
Default value is NULL. Supported types include: grayscale binary label color image.
kernel size in each direction (odd values).
Default value is SbVec3i32(3,3,3)
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.
Stddev threshold factor (strictly positive value).
Default value is 1.0f.