SoMorphoLut3DInsertKernel Method |
Inserts a kernel into the LUT.
Namespace: OIV.ImageViz.Nodes.Luts
public void InsertKernel( SbKernel3i32 kernel3d, SoMorphoLut3DInsertModes insertMode, uint kernelRotationX, uint kernelRotationY, uint kernelRotationZ )
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
The insertion mode of the kernel. See SoMorphoLut.InsertMode.
Rotation applied to the kernel on X-axis before insertion.
Rotation applied to the kernel on Y-axis before insertion.
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.