Click or drag to resize
SoConvolutionDoSeparateConvolution1D Method (SoBufferObject, SoBufferObject, Single, Int32, Int32)

This function performs a 1D convolution on a two dimensional buffer using a 1D kernel.

Namespace: OIV.Inventor.Algorithms
Assembly: OIV.Inventor.Algorithms (in OIV.Inventor.Algorithms.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public int DoSeparateConvolution1D(
	SoBufferObject sourceBufferObject,
	SoBufferObject targetBufferObject,
	float[] kernelData,
	int width,
	int height
)

Parameters

sourceBufferObject
Type: OIV.Inventor.DevicesSoBufferObject

The input float buffer.

targetBufferObject
Type: OIV.Inventor.DevicesSoBufferObject

The output float buffer.

kernelData
Type: SystemSingle

The kernel values.

width
Type: SystemInt32

The width of the two dimensional buffer.

height
Type: SystemInt32

The height of the two dimensional buffer.

Return Value

Type: Int32

Returns 0 if there is no error, 1 if one of the buffers is too small.

Remarks

  • The data in the input buffer must contain floats.

  • The function puts float values in the output buffer.

This convolution is equivalent to a row convolution.

See Also