Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoConvolution.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#if !defined SOCONVOLUTION_H
24#define SOCONVOLUTION_H
25
26#include <Inventor/sys/port.h>
27
28#include <Inventor/SbDataType.h>
29
30#include <Inventor/algorithms/SoAlgorithmsDefs.h>
31
32class SoBufferObject;
34
51{
52private:
54 virtual ~SoConvolution();
55
57 static void initClass();
58
60 static void exitClass();
61
62public:
65
84 virtual int doSeparateConvolution1D( SoBufferObject* sourceBufferObject,
85 SoBufferObject* targetBufferObject,
86 float* kernelData, int kernelSize,
87 int width, int height );
88
89
112 virtual int doSeparateConvolution2D( SoBufferObject* sourceBufferObject,
113 SoBufferObject* targetBufferObject,
114 float* kernelData, int kernelSize,
115 int width, int height );
116
117
134 virtual int doSeparateConvolutionRow( SoBufferObject* sourceBufferObject,
135 SoBufferObject* targetBufferObject,
136 float* kernelData, int kernelSize,
137 int width, int height );
138
139
156 virtual int doSeparateConvolutionColumn( SoBufferObject* sourceBufferObject,
157 SoBufferObject* targetBufferObject,
158 float* kernelData, int kernelSize,
159 int width, int height );
160
161
169 SoCpuBufferObject* targetBufferObject,
170 float* kernelData, int kernelSize,
171 int width, int height );
172
173
181 SoCpuBufferObject* targetBufferObject,
182 float* kernelData, int kernelSize,
183 int width, int height );
184
185
193 SoCpuBufferObject* targetBufferObject,
194 float* kernelData, int kernelSize,
195 int width, int height );
196
197
205 SoCpuBufferObject* targetBufferObject,
206 float* kernelData, int kernelSize,
207 int width, int height );
208
209
210};
211
212#endif //SOCONVOLUTION_H
213
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Convolution func...
SoConvolution()
SoConvolution constructor.
virtual int doSeparateConvolutionRow(SoBufferObject *sourceBufferObject, SoBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
This function performs a row convolution on a two dimensional buffer using a 1D kernel.
int doSeparateConvolution1D(SoCpuBufferObject *sourceBufferObject, SoCpuBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
Fast version for CPU buffers.
virtual int doSeparateConvolutionColumn(SoBufferObject *sourceBufferObject, SoBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
This function performs a column convolution on a two dimensional buffe using a 1D kernel.
virtual int doSeparateConvolution1D(SoBufferObject *sourceBufferObject, SoBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
This function performs a 1D convolution on a two dimensional buffer using a 1D kernel.
int doSeparateConvolutionColumn(SoCpuBufferObject *sourceBufferObject, SoCpuBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
Fast version for CPU buffers.
virtual int doSeparateConvolution2D(SoBufferObject *sourceBufferObject, SoBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
This function performs a 2D convolution on a two dimensional buffer using a 1D kernel.
int doSeparateConvolutionRow(SoCpuBufferObject *sourceBufferObject, SoCpuBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
Fast version for CPU buffers.
int doSeparateConvolution2D(SoCpuBufferObject *sourceBufferObject, SoCpuBufferObject *targetBufferObject, float *kernelData, int kernelSize, int width, int height)
Fast version for CPU buffers.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> CPU buffer objec...