Class SoMorphoLut3D
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.imageviz.nodes.luts.SoMorphoLut3D
-
- All Implemented Interfaces:
SafeDisposable
public class SoMorphoLut3D extends SoFieldContainer
class that represents a morphological look-up table (LUT). Class that represents a 3D morphological look-up table (LUT).- See Also:
SoFieldContainer
,SbKernel3i32
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoMorphoLut3D.InsertModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoMorphoLut3D()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbKernel3i32
getKernel(int indexKernel)
Returns the specified kernel.long
getNumKernels()
Returns the number of kernels registered in the LUT.void
insertKernel(SbKernel3i32 kernel3d, SoMorphoLut3D.InsertModes insertMode, int kernelRotationX, int kernelRotationY, int kernelRotationZ)
Inserts a kernel into the LUT.-
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
-
-
-
-
Method Detail
-
insertKernel
public void insertKernel(SbKernel3i32 kernel3d, SoMorphoLut3D.InsertModes insertMode, int kernelRotationX, int kernelRotationY, int kernelRotationZ)
Inserts a kernel into the LUT.kernel3d The kernel to add. A 3D-kernel should contain exactly 27 values. Accepted values for the kernel are: - 0: pixel is off
- 1: pixel is on
- 2: pixel is ignored
insertMode The insertion mode of the kernel. See SoMorphoLut.InsertMode. kernelRotationX Rotation applied to the kernel on X-axis before insertion. kernelRotationY Rotation applied to the kernel on Y-axis before insertion. kernelRotationZ Rotation applied to the kernel on Z-axis before insertion. Value should be between 0 (no rotation) and 7. Rotation is counter-clockwise on axis direction. Rotation are applied in the following order: rotation on X-axis, rotation on Y-axis and rotation on Z-axis. An
SbException
is is thrown if the size of the kernel is not 3x3x3.
-
getKernel
public SbKernel3i32 getKernel(int indexKernel)
Returns the specified kernel.- Parameters:
indexKernel
- index of the kernel (cannot exceed registered number of kernels).
-
getNumKernels
public long getNumKernels()
Returns the number of kernels registered in the LUT.
-
-