1 #ifndef CONVOLUTION_DEVICE_H
2 #define CONVOLUTION_DEVICE_H
4 #include "ConstantMemoryLink.h"
6 const int KERNEL_SIZE
= 9;
9 * Accès à la mémoire constante.
11 ConstantMemoryLink
constantMemoryKernelLink();
14 * Associe l'image source en tant que texture.
16 void bindSouceAsTexture(uchar4
* source
, int w
, int h
);
17 void unbindSouceAsTexture();
20 * Transforme l'image fournit en niveau de gris.
23 void toGrayscale(uchar4
* ptrDevPixels
, int w
, int h
);
26 * Convolution de l'image source 'textureImageSource' vers 'ptrDevOutput'.
29 void convolution(uchar4
* ptrDevOutput
, int w
, int h
);