public class SoFirstOrderStatisticsProcessing extends SoImageVizEngine
SoFirstOrderStatisticsProcessing image filter
SoFirstOrderStatisticsProcessing image filter computes first order statistics.
The SoFirstOrderStatisticsProcessing filter is dealing with first order statistics. It creates a result image where values on pixels are only function of values of this pixel in the initial image and its neighbourhood of a wanted size. In order to calculate this values, we calculate local histograms (array of number of pixels per value in the neighbourhood). In the following equations,
corresponds to the probability to have a pixel with value
(it's the number of those pixels divided by the total number of pixels in the neighbourhood).
For ENTROPY and ENERGY types, we must reduce the number of grey levels in order to calculate more significant statistics. We have two parameters to reduce images : having 4 or 8 classes, and with an equal repartition or not. For an equal repartition, we use the quantiles :
So, for 4 classes, we use :
and for 8 classes :
In the other case (no equi-repartition required), we use mean and standard deviation. So the delimiters for 4 classes are :
For 8 classes, we calculate the mean
, then we obtain two subsets where we calculate means
and
, and standard deviations, we have in that case :
This values delimitates the classes and the value given to the pixels which belong to one class is the middle of the segment.
File format/default:
FirstOrderStatisticsProcessing {
| measureType | MEAN |
| inImage | NULL |
| kernelSize | 3 |
Library references: contrast energy entropy kurtosis mean skewness variance variationDeprecated since Open Inventor 9800
Replaced by SoLocalStatisticsProcessing
| Modifier and Type | Class and Description |
|---|---|
static class |
SoFirstOrderStatisticsProcessing.MeasureTypes
Deprecated.
|
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
CONTRAST
Deprecated.
|
static int |
ENERGY
Deprecated.
Use
SoFirstOrderStatisticsProcessing.MeasureTypes.ENERGY instead. |
static int |
ENTROPY
Deprecated.
|
SoSFImageDataAdapter |
inImage
Deprecated.
The input image.
|
SoSFInt32 |
kernelSize
Deprecated.
The size of the kernel.
|
static int |
KURTOSIS
Deprecated.
|
static int |
MEAN
Deprecated.
Use
SoFirstOrderStatisticsProcessing.MeasureTypes.MEAN instead. |
SoSFEnum<SoFirstOrderStatisticsProcessing.MeasureTypes> |
measureType
Deprecated.
Select the first order measure to compute.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outImage
Deprecated.
The output image.
|
static int |
SKEWNESS
Deprecated.
|
static int |
VARIANCE
Deprecated.
|
static int |
VARIATION
Deprecated.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoFirstOrderStatisticsProcessing()
Deprecated.
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int MEAN
SoFirstOrderStatisticsProcessing.MeasureTypes.MEAN instead.@Deprecated public static final int VARIANCE
SoFirstOrderStatisticsProcessing.MeasureTypes.VARIANCE instead.@Deprecated public static final int SKEWNESS
SoFirstOrderStatisticsProcessing.MeasureTypes.SKEWNESS instead.@Deprecated public static final int KURTOSIS
SoFirstOrderStatisticsProcessing.MeasureTypes.KURTOSIS instead.@Deprecated public static final int CONTRAST
SoFirstOrderStatisticsProcessing.MeasureTypes.CONTRAST instead.@Deprecated public static final int VARIATION
SoFirstOrderStatisticsProcessing.MeasureTypes.VARIATION instead.@Deprecated public static final int ENERGY
SoFirstOrderStatisticsProcessing.MeasureTypes.ENERGY instead.@Deprecated public static final int ENTROPY
SoFirstOrderStatisticsProcessing.MeasureTypes.ENTROPY instead.public final SoSFEnum<SoFirstOrderStatisticsProcessing.MeasureTypes> measureType
public final SoSFImageDataAdapter inImage
public final SoSFInt32 kernelSize
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Generated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com