Archive for the ‘CUDA’ Category

Interpolation (Resizing) of a Bitmap image

To Change the Sharpness of R, G,B values of a Pixel of the image

To Change the Contrast of R, G, B values of a Pixel of the image

To Change the brightness of a Pixel of the imag

To Change the Gamma of R, G,B values of a Pixel of the image

To Change the Saturation of R, G, B values of a Pixel of the image

#define BCHANNEL 0 #define GCHANNEL 1 #define RCHANNEL 2 unsigned char Clip(int iVal) { return ( iVal > 255 ? 255 : ( iVal < 0 ) ? 0 : iVal) ; } //Pixel Functions int GetValue(int iX, int iY, int iImageWidth, int iImageHeight, int iChannel, int iBPP, BYTE *pbySrc) { Clip(iX); Clip(iY); return pbySrc[iY [...]

How to debug *.cu files in Visual Studio Project.

Check whether CUDA build Rules is activate in the .cu File in Visual Studio Project

Set CUDA Build Rules to Project in Visual Studio