public class SoMajorityFilterProcessing extends SoImageVizEngine
SoMajorityFilterProcessing engine
The SoMajorityFilterProcessing engine replaces voxels by the more present value inside the neighborhood.
For an introduction to image filters, see section Images Filters.
This engine replaces voxels by the more present value inside the neighborhood. If several values are present the same number of times, the module favors original voxel value.
See also:
SoGaussianFilterProcessing, SoMedianFilterProcessing.
File format/default:
MajorityFilterProcessing {
| computeMode | MODE_AUTO |
| kernelSize | 3 3 3 |
| inImage | NULL |
Library references: majorityfilter majorityfilter3d
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFEnum<SoImageVizEngine.ComputeModes> |
computeMode
Select the compute Mode (2D or 3D or AUTO) .
|
SoSFImageDataAdapter |
inImage
The input grayscale image.
|
SoSFVec3i32 |
kernelSize
The kernel size in each direction (odd values).
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outImage
The output image.
|
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoMajorityFilterProcessing()
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, stopInternalThreadspublic final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
public final SoSFVec3i32 kernelSize
SbVec3i32(3,3,3)public final SoSFImageDataAdapter inImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outImage
Generated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com