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.AlgorithmsAssembly: OIV.Inventor.Algorithms (in OIV.Inventor.Algorithms.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public int DoSeparateConvolution1D(
SoBufferObject sourceBufferObject,
SoBufferObject targetBufferObject,
float[] kernelData,
int width,
int height
)
Public Function DoSeparateConvolution1D (
sourceBufferObject As SoBufferObject,
targetBufferObject As SoBufferObject,
kernelData As Single(),
width As Integer,
height As Integer
) As Integer
public:
int DoSeparateConvolution1D(
SoBufferObject^ sourceBufferObject,
SoBufferObject^ targetBufferObject,
array<float>^ kernelData,
int width,
int height
)
member DoSeparateConvolution1D :
sourceBufferObject : SoBufferObject *
targetBufferObject : SoBufferObject *
kernelData : float32[] *
width : int *
height : int -> int
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:
Int32Returns 0 if there is no error, 1 if one of the buffers is too small.
Remarks This convolution is equivalent to a row convolution.
See Also