#include <mi32/colorbal.h>
Public Member Functions | |
| COLORBALANCE (const CBPARMS &p) | |
| COLORBALANCE () | |
| ~COLORBALANCE () | |
| bool | IsIdentity () const |
| void | SetParms (const CBPARMS &) |
| void | TransBuffers (int *rbuf, int *gbuf, int *bbuf, int count) const |
| void | TransBuffers (UINT8 *rbuf, UINT8 *gbuf, UINT8 *bbuf, int count) const |
| void | TransCOLORs (COLOR *buf, int count) const |
| void | TransRGB (UINT8 *buf, int count, int BytesPerPixel=3) const |
| COLORBALANCE::COLORBALANCE | ( | ) | [inline] |
Default constructor. Do nothing.
| COLORBALANCE::~COLORBALANCE | ( | ) | [inline] |
Simple destructor.
| bool COLORBALANCE::IsIdentity | ( | void | ) | const [inline] |
Determine if is "identity".
| void COLORBALANCE::SetParms | ( | const CBPARMS & | ) |
Set parameters.
| void COLORBALANCE::TransBuffers | ( | int * | rbuf, | |
| int * | gbuf, | |||
| int * | bbuf, | |||
| int | count | |||
| ) | const |
Do color balancing on RGB buffers (3 buffers).
Overloaded version of this function which takes (int*) buffers but still assumes values in range of 0-255, less efficient than above.
| rbuf | Buffer of red values | |
| gbuf | Buffer of green values | |
| bbuf | Buffer of blue values | |
| count | Number of cells to convert |
Do color balancing on RGB buffers (3 buffers).
| rbuf | Buffer of red values | |
| gbuf | Buffer of green values | |
| bbuf | Buffer of blue values | |
| count | Number of cells to convert |
| void COLORBALANCE::TransCOLORs | ( | COLOR * | buf, | |
| int | count | |||
| ) | const |
Translate an array or COLOR structures.
| void COLORBALANCE::TransRGB | ( | UINT8 * | buf, | |
| int | count, | |||
| int | BytesPerPixel = 3 | |||
| ) | const |
Translate one buffer with RGBRGBRGB... or RGBxRGBxRGBx...
1.6.1