Class SoAutoIntensityClassificationProcessing
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.engines.SoEngine
-
- com.openinventor.imageviz.engines.SoImageVizEngine
-
- com.openinventor.imageviz.engines.imagesegmentation.classification.SoAutoIntensityClassificationProcessing
-
- All Implemented Interfaces:
SafeDisposable
public class SoAutoIntensityClassificationProcessing extends SoImageVizEngine
SoAutoIntensityClassificationProcessing
classifies all pixels/voxels of an image using the k-means method. Given a set of observations (x1, x2, ..., xn), where each observation is a d-dimensional real vector, k-means clustering aims to partition the n observations into k (= n) sets S = {S1, S2, ..., Sk} so as to minimize the within-cluster sum of squares (WCSS) (sum of distance functions of each point in the cluster to the K center).References Lloyd, S. P. "Least square quantization in PCM." IEEE Transactions on Information Theory 28 (2): 129–137, 1982.
File format/default:
AutoIntensityClassificationProcessing {
computeMode MODE_AUTO inImage NULL classNumber 2 dataPercentage 100
Library references: k_means_classification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3ds
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFInt32
classNumber
The number of classes to detect (i.e.SoSFEnum<SoImageVizEngine.ComputeModes>
computeMode
Select the compute Mode (2D or 3D or AUTO) .SoSFInt32
dataPercentage
The data percentage used for pre-computing the classification.SoSFImageDataAdapter
inImage
The input image.SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter>
outLabelImage
The output label image where a one label represents one class.-
Fields inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
onBegin, onEnd, onProgress
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoAutoIntensityClassificationProcessing()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.imageviz.engines.SoImageVizEngine
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
-
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
computeMode
public final SoSFEnum<SoImageVizEngine.ComputeModes> computeMode
Select the compute Mode (2D or 3D or AUTO) . Default is MODE_AUTO
-
inImage
public final SoSFImageDataAdapter inImage
The input image. Default value is NULL. Supported types include: grayscale binary label color image.
-
classNumber
public final SoSFInt32 classNumber
The number of classes to detect (i.e. the label number of the output). Default value is 2.
-
dataPercentage
public final SoSFInt32 dataPercentage
The data percentage used for pre-computing the classification. Default value is 100.
-
outLabelImage
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outLabelImage
The output label image where a one label represents one class. Default value is NULL. Supported types include: label color image.
-
-