#include <CBMagInfo.h>
Definition at line 166 of file CBMagInfo.h.
Public Types | |
enum | SWAPTYPE { SWAP_NONE, SWAP_GREEN_BLUE, SWAP_RED_BLUE, SWAP_RED_GREEN, SWAP_LAST_TYPE = SWAP_RED_GREEN } |
enum | MERGETYPE { MERGE_NONE, MERGE_Red, MERGE_Blue, MERGE_ALL, MERGE_Green, MERGE_LAST_TYPE = MERGE_Green } |
Public Member Functions | |
CBMagInfo () | |
CBMagInfo (const CBMAGINFOSTRUCT ©Struct) | |
CBMagInfo (const CBMagInfo ©Info) | |
virtual | ~CBMagInfo () |
CBMagInfo & | operator= (const CBMAGINFOSTRUCT ©Struct) |
CBMagInfo & | operator= (const CBMagInfo ©Info) |
CBMAGRESULT | LoadFromFile (const char *filename) |
CBMAGRESULT | LoadFromHandle (FILE *fp) |
CBMAGRESULT | SaveToFile (const char *filename) |
CBMAGRESULT | SaveToHandle (FILE *fp) |
void | Reset () |
void | ProcessImage (unsigned char *rgbBuffer, int imgWidth, int imgHeight, int xOff, int yOff, int procWidth, int procHeight) |
CBMAGRESULT | SetName (const char *name) |
CBMAGRESULT | SetFeedback (bool allow) |
CBMAGRESULT | SetRefresh (int refresh) |
CBMAGRESULT | SetOnTop (bool onTop) |
CBMAGRESULT | SetMagLevel (float magLvl) |
CBMAGRESULT | SetFilterMouse (float coefficient) |
CBMAGRESULT | SetNegative (bool negative) |
CBMAGRESULT | SetGamma (float gamma) |
CBMAGRESULT | SetBrightRed (float brightRed) |
CBMAGRESULT | SetBrightGreen (float brightGreen) |
CBMAGRESULT | SetBrightBlue (float brightBlue) |
CBMAGRESULT | SetHue (float hue) |
CBMAGRESULT | SetSeverity (float severity) |
CBMAGRESULT | SetGreyRed (float greyRed) |
CBMAGRESULT | SetGreyGreen (float greyGreen) |
CBMAGRESULT | SetGreyBlue (float greyBlue) |
CBMAGRESULT | SetGreyYellow (float greyYellow) |
CBMAGRESULT | SetGreyCyan (float greyCyan) |
CBMAGRESULT | SetGreyMagenta (float greyMagenta) |
CBMAGRESULT | SetCompress (float compress) |
CBMAGRESULT | SetSwapType (SWAPTYPE swapType) |
CBMAGRESULT | SetMergeType (MERGETYPE mergeType) |
CBMAGRESULT | GetName (char *nameBuffer, int &bufLen) const |
int | GetRefresh () const |
bool | GetFeedback () const |
bool | GetOnTop () const |
bool | GetNegative () const |
float | GetMagLevel () const |
float | GetFilterMouse () const |
float | GetGamma () const |
float | GetBrightRed () const |
float | GetBrightGreen () const |
float | GetBrightBlue () const |
float | GetHue () const |
float | GetSeverity () const |
float | GetGreyRed () const |
float | GetGreyGreen () const |
float | GetGreyBlue () const |
float | GetGreyYellow () const |
float | GetGreyCyan () const |
float | GetGreyMagenta () const |
float | GetCompress () const |
SWAPTYPE | GetSwapType () const |
MERGETYPE | GetMergeType () const |
void | BuildLookupTables () |
void | BuildGamma (bool buildRed, bool buildGreen, bool buildBlue) |
void | BuildGreys (bool buildRed, bool buildYellow, bool buildGreen, bool buildCyan, bool buildBlue, bool buildMag) |
void | BuildHue () |
void | BuildSeverity () |
Static Public Member Functions | |
static CBMAGRESULT | SetupDefaults (CBMAGINFOSTRUCT *magInfo) |
static void | FlipEndian (int &value) |
static void | FlipEndian (float &value) |
static void | FlipEndian (CBMAGINFOSTRUCT &infoStruct) |
static _inline void | RGBtoHSI (unsigned char &rh, unsigned char &gs, unsigned char &bi) |
static _inline void | HSItoRGB (unsigned char &rh, unsigned char &gs, unsigned char &bi) |
static CBMAGRESULT | CorrectEndian (CBMAGINFOSTRUCT &infoStruct) |
Protected Member Functions | |
void | InitLUTs () |
void | FreeLUTs () |
Protected Attributes | |
CBMAGINFOSTRUCT | fInfo |
bool | fFileDirty |
bool | fStructDirty |
unsigned char * | fRedLUT |
unsigned char * | fGreenLUT |
unsigned char * | fBlueLUT |
unsigned char * | fIntLUTRed |
unsigned char * | fIntLUTGreen |
unsigned char * | fIntLUTBlue |
unsigned char * | fIntLUTYellow |
unsigned char * | fIntLUTCyan |
unsigned char * | fIntLUTMagenta |
unsigned char * | fSatLUTRed |
unsigned char * | fSatLUTGreen |
unsigned char * | fSatLUTBlue |
unsigned char * | fSatLUTYellow |
unsigned char * | fSatLUTCyan |
unsigned char * | fSatLUTMagenta |
unsigned char * | fHueLUT |
unsigned char * | fMergeGreenLUT |
unsigned char * | fMergeRedLUT |
unsigned char * | fMergeBlueLUT |
unsigned char * | fSevLUT |
unsigned char * | fGreyRedLUT |
unsigned char * | fGreyGreenLUT |
unsigned char * | fGreyBlueLUT |