Click or drag to resize
SoMorphoLut2DInsertKernel 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(
	SbKernel2i32 kernel2d,
	SoMorphoLut2DInsertModes insertMode,
	uint kernelRotation
)

Parameters

kernel2d
Type: OIV.ImageVizSbKernel2i32

The kernel to add. A 2D-kernel should contain exactly 9 values and indexes matching the following table. Accepted values for the kernel are:

  • 0: pixel is off

  • 1: pixel is on

  • 2: pixel is ignored

insertMode
Type: OIV.ImageViz.Nodes.LutsSoMorphoLut2DInsertModes

The insertion mode of the kernel. See OIV.ImageViz.Nodes.Luts.SoMorphoLut2D.InsertModes.

kernelRotation
Type: SystemUInt32

Rotation applied to the kernel before insertion. Value should be between 0 (no rotation) and 7. Rotation is counter-clockwise.

Remarks

As an example, if kernelRotation = 1, the resulting kernel inserted is:

An SbException is thrown if the size of the kernel is not 3x3.

See Also