public class SoLabelingProcessing extends SoImageVizEngine
SoLabelingProcessing engine
 The SoLabelingProcessing engine labels objects of a binary image.
 In this engine, the image is scanned from top to bottom and left to right. Each pixel of the same object takes the same value, and each object is assigned to a different value, starting from value 1. The assigned gray level depends on the location of the object in the image. The maximum gray level value gives the total number of objects in the original binary image. The algorithm works in three steps:
A label image may be 16 or 32 bits per pixel. By default it is 2 bytes per pixel, but if the number of labels exceeds 65,535 then the output image is automatically converted to 4 bytes and then can manage more than 2 billion labels.
File format/default:
LabelingProcessing {
| computeMode | MODE_AUTO | 
| neighborhood3d | CONNECTIVITY_26 | 
| inObjectImage | NULL | 
 
Library references: label
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 | 
inObjectImage
The input binary or label image. 
 | 
SoSFEnum<SoImageVizEngine.Neighborhood3ds> | 
neighborhood3d
In 3D configuration (see  
computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels. | 
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> | 
outLabelImage
The output label image. 
 | 
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description | 
|---|
SoLabelingProcessing()
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 SoSFEnum<SoImageVizEngine.Neighborhood3ds> neighborhood3d
computeMode), the neighborhood connectivity defines the connectivity considered for processing adjacent voxels.
 . Default is CONNECTIVITY_26.public final SoSFImageDataAdapter inObjectImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outLabelImage
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com