Functions | |
void | CxImage::AddAveragingCont (RGBQUAD const &color, float const surf, float &rr, float &gg, float &bb, float &aa) |
void | CxImage::Bitfield2RGB (BYTE *src, WORD redmask, WORD greenmask, WORD bluemask, BYTE bpp) |
BYTE | CxImage::BlindAlphaGet (const long x, const long y) |
RGBQUAD | CxImage::BlindGetPixelColor (const long x, const long y) |
BYTE | CxImage::BlindGetPixelIndex (const long x, const long y) |
void * | CxImage::BlindGetPixelPointer (const long x, const long y) |
void | CxImage::blur_line (float *ctable, float *cmatrix, int cmatrix_length, BYTE *cur_col, BYTE *dest_col, int y, long bytes) |
int | CxImage::CompareColors (const void *elem1, const void *elem2) |
void | CxImage::CopyInfo (const CxImage &src) |
bool | CxImage::DFT (int dir, long m, double *x1, double *y1, double *x2, double *y2) |
bool | CxImage::EncodeSafeCheck (CxFile *hFile) |
bool | CxImage::FFT (int dir, int m, double *x, double *y) |
int | CxImage::gen_convolve_matrix (float radius, float **cmatrix_p) |
float * | CxImage::gen_lookup_table (float *cmatrix, int cmatrix_length) |
void | CxImage::Ghost (CxImage *src) |
float | CxImage::HueToRGB (float n1, float n2, float hue) |
bool | CxImage::IsPowerof2 (long x) |
bool | CxImage::RepairChannel (CxImage *ch, float radius) |
void | CxImage::RGBtoBGR (BYTE *buffer, int length) |
void | CxImage::Startup (DWORD imagetype=0) |
Variables | |
BITMAPINFOHEADER | CxImage::head |
CXIMAGEINFO | CxImage::info |
BYTE * | CxImage::pAlpha |
void * | CxImage::pDib |
CxImage ** | CxImage::pLayers |
BYTE * | CxImage::pSelection |
|
Helper function for GetAreaColorInterpolated. Adds 'surf' portion of image pixel with color 'color' to (rr,gg,bb,aa). |
|
turns a 16 or 32 bit bitfield image into a RGB image |
|
Get alpha value without boundscheck (a bit faster). Pixel must be inside the image.
|
|
This is (a bit) faster version of GetPixelColor. It tests bounds only in debug mode (_DEBUG defined). It is an error to request out-of-borders pixel with this method. In DEBUG mode an exception will be thrown, and data will be violated in non-DEBUG mode.
|
|
|
|
Returns pointer to pixel. Currently implemented only for truecolor images.
|
|
this function is written as if it is blurring a column at a time, even though it can operate on rows, too. There is no difference in the processing of the lines, at least to the blur_line function.
|
|
|
|
Copies the image attributes from an existing image.
|
|
Direct fourier transform o(n)=n^2 Written by Paul Bourke, July 1998 |
|
|
|
This computes an in-place complex-to-complex FFT x and y are the real and imaginary arrays of n=2^m points. o(n)=n*log2(n) dir = 1 gives forward transform dir = -1 gives reverse transform Written by Paul Bourke, July 1998 FFT algorithm by Cooley and Tukey, 1965 |
|
generates a 1-D convolution matrix to be used for each pass of a two-pass gaussian blur. Returns the length of the matrix.
|
|
generates a lookup table for every possible product of 0-255 and each value in the convolution matrix. The returned array is indexed first by matrix position, then by input multiplicand (?) value.
|
|
(this) points to the same pDib owned by (*from), the image remains in (*from) but (this) has the access to the pixels. Use carefully !!! |
|
|
|
|
|
|
|
swaps the blue and red components (for RGB images)
|
|
Initialize the internal structures |
|
|
|
|
|
|
|
|
|
|
|
|