Archive for the ‘C++’ 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 [...]

To generate Random float/double numbers in a given limit

RGB to YUV Conversion and YUV to RGB Conversion. This is mainly used in the multimedia domain, especially in Image and in Video.