SoMorphoLut2DInsertKernel Method |
Inserts a kernel into the LUT.
Namespace: OIV.ImageViz.Nodes.Luts
public void InsertKernel( SbKernel2i32 kernel2d, SoMorphoLut2DInsertModes insertMode, uint kernelRotation )
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
The insertion mode of the kernel. See OIV.ImageViz.Nodes.Luts.SoMorphoLut2D.InsertModes.
Rotation applied to the kernel before insertion. Value should be between 0 (no rotation) and 7. Rotation is counter-clockwise.
As an example, if kernelRotation = 1, the resulting kernel inserted is:
An SbException is thrown if the size of the kernel is not 3x3.