SoLocalStatisticsProcessing engine More...
#include <ImageViz/Engines/ImageFiltering/TextureFilters/SoLocalStatisticsProcessing.h>
Public Types | |
enum | StatisticalOperator { MEAN = 0, VARIANCE = 1, SKEWNESS = 2, KURTOSIS = 3, CONTRAST = 4, VARIATION = 5, ENERGY = 6, ENTROPY = 7 } |
enum | KernelShape { CUBE = 0, BALL = 1 } |
Public Member Functions | |
SoLocalStatisticsProcessing () | |
Public Attributes | |
SoSFEnum | computeMode |
SoSFEnum | statisticalOperator |
SoSFImageDataAdapter | inImage |
SoSFInt32 | kernelSize |
SoSFEnum | kernelShape |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
SoLocalStatisticsProcessing image filter computes statistics on a sliding window. The SoLocalStatisticsProcessing filter computes for each voxel of an image the value of a selected statistical operator on a predefined neighborhood. It creates a result image where output pixel values are only function of the corresponding pixel values in the input image and its neighborhood of a given size. These output values are extracted from local histograms which are arrays representing the number of pixels per value in the neighborhood. In the equations of each statistical operator description, corresponds to the probability to have a pixel with value (i.e., the number of pixels of value divided by the total number of pixels in the neighborhood).
Available statistical operators are:
computeMode | MODE_AUTO |
statisticalOperator | MEAN |
inImage | NULL |
kernelSize | 3 |
kernelShape | BALL |
SoLocalStatisticsProcessing::SoLocalStatisticsProcessing | ( | ) |
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.
Shape of the neighborhood.
Use enum KernelShape. Default is BALL
Specifies the size of the kernel.
The value of kernelSize is actually the 'half' kernel size. For example, kernelSize = 1 applies a 3x3(x3) pixel kernel in 2D(3D) when kernelShape is CUBE. Default value is 3.
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter*> SoLocalStatisticsProcessing::outImage |
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.
Select the first order measure to compute.
Use enum StatisticalOperator. Default is MEAN