public class SoMedianFilterProcessing extends SoImageVizEngine
SoMedianFilterProcessing engine
The SoMedianFilterProcessing engine smoothes the image using morphological operators.
For an introduction to image filters, see section Images Filters.
This module uses morphological operators to set the pixel value to the median for the defined neighborhood. The SoMedianFilterProcessing usually works well when images contain non-Gaussian noise and/or very small artifacts. It does not cause blurring to the same extend as the SoBoxFilterProcessing, but does take considerably longer to execute.
The gray levels of all pixels in the neighborhood are sorted from the smallest value to the largest one. The central pixel in the sort is then the median value, i.e. the value for which there are as many lower gray levels as higher ones. The process may be iterated.
To explain this, consider the array:
The sorted gray level values will be: 12 14 14 15 17 18 19 20.
The median value is 16, and it will be the value of the output pixel.
The separable mode performs a Median filtering considering the lines and then the columns.
See also:
SoGaussianFilterProcessing, SoRecursiveExponentialFilterProcessing, SoBoxFilterProcessing.
File format/default:
MedianFilterProcessing {
| computeMode | MODE_AUTO |
| neighborhood3d | CONNECTIVITY_26 |
| kernelType | STANDARD |
| inImage | NULL |
| elementSize | 3 |
| kernelMode | ITERATIVE |
Library references: medianfilter medianfilter3d separablemedian separablemedian3d
| Modifier and Type | Class and Description |
|---|---|
static class |
SoMedianFilterProcessing.KernelModes |
static class |
SoMedianFilterProcessing.KernelTypes
Deprecated.
|
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
BALL
Deprecated.
Use
SoMedianFilterProcessing.KernelModes.BALL instead. |
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
static int |
CUBE
Deprecated.
Use
SoMedianFilterProcessing.KernelModes.CUBE instead. |
SoSFInt32 |
elementSize
The half size of the structuring element.
|
SoSFImageDataAdapter |
inImage
The input grayscale image.
|
static int |
ITERATIVE
Deprecated.
Use
SoMedianFilterProcessing.KernelModes.ITERATIVE instead. |
SoSFEnum<SoMedianFilterProcessing.KernelModes> |
kernelMode
The shape of the 3D neighborhood.
|
SoSFEnum<SoMedianFilterProcessing.KernelTypes> |
kernelType
Deprecated.
As of Open Inventor 9700 See documentation for more details
|
SoSFEnum<SoImageVizEngine.Neighborhood3ds> |
neighborhood3d
In 3D configuration (see
computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels. |
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outImage
The output image.
|
static int |
SEPARABLE
Deprecated.
Use
SoMedianFilterProcessing.KernelTypes.SEPARABLE instead. |
static int |
STANDARD
Deprecated.
Use
SoMedianFilterProcessing.KernelTypes.STANDARD instead. |
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoMedianFilterProcessing()
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 SEPARABLE
SoMedianFilterProcessing.KernelTypes.SEPARABLE instead.@Deprecated public static final int STANDARD
SoMedianFilterProcessing.KernelTypes.STANDARD instead.@Deprecated public static final int ITERATIVE
SoMedianFilterProcessing.KernelModes.ITERATIVE instead.@Deprecated public static final int CUBE
SoMedianFilterProcessing.KernelModes.CUBE instead.@Deprecated public static final int BALL
SoMedianFilterProcessing.KernelModes.BALL instead.public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFEnum<SoImageVizEngine.Neighborhood3ds> neighborhood3d
computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels.
. Default is CONNECTIVITY_26.@Deprecated public final SoSFEnum<SoMedianFilterProcessing.KernelTypes> kernelType
public final SoSFImageDataAdapter inImage
public final SoSFInt32 elementSize
public final SoSFEnum<SoMedianFilterProcessing.KernelModes> kernelMode
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Generated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com