Click or drag to resize
SoMorphoLut3DInsertKernel Method

Inserts a kernel into the LUT.

Namespace: OIV.ImageViz.Nodes.Luts
Assembly: OIV.ImageViz (in OIV.ImageViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void InsertKernel(
	SbKernel3i32 kernel3d,
	SoMorphoLut3DInsertModes insertMode,
	uint kernelRotationX,
	uint kernelRotationY,
	uint kernelRotationZ
)

Parameters

kernel3d
Type: OIV.ImageVizSbKernel3i32

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
Type: OIV.ImageViz.Nodes.LutsSoMorphoLut3DInsertModes

The insertion mode of the kernel. See SoMorphoLut.InsertMode.

kernelRotationX
Type: SystemUInt32

Rotation applied to the kernel on X-axis before insertion.

kernelRotationY
Type: SystemUInt32

Rotation applied to the kernel on Y-axis before insertion.

kernelRotationZ
Type: SystemUInt32

Rotation applied to the kernel on Z-axis before insertion.

Remarks

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.

See Also