"L. Spiro Engine"
|
Miscellaneous utility functions related to image manipulation.. More...
#include <LSIImageUtils.h>
Static Public Member Functions | |
static LSVOID LSE_CALL | GetHistogram (const CImage &_iImage, LSUINT8 *_pui8Buffer) |
static LSVOID LSE_CALL | GetHistogram (const CImage &_iImage, LSUINT8 *_pui8BufferR, LSUINT8 *_pui8BufferG, LSUINT8 *_pui8BufferB) |
static LSVOID LSE_CALL | FindLowAndHigh (const LSUINT8 *_pui8Buffer, LSFLOAT _fTolerance, LSUINT32 &_ui32Low, LSUINT32 &_ui32High) |
Miscellaneous utility functions related to image manipulation..
Class CImageUtils Description: Miscellaneous utility functions related to image manipulation..
static LSVOID LSE_CALL lsi::CImageUtils::FindLowAndHigh | ( | const LSUINT8 * | _pui8Buffer, |
LSFLOAT | _fTolerance, | ||
LSUINT32 & | _ui32Low, | ||
LSUINT32 & | _ui32High | ||
) | [static] |
Get the low and high tones from a histogram given some tolerance.
_pui8Buffer | The histogram from which to find the high and low tons. |
_fTolerance | Amount of tolerance to apply while searching for the high and low tones. |
_ui32Low | The returned low tone. |
_ui32High | The returned high tone. |
static LSVOID LSE_CALL lsi::CImageUtils::GetHistogram | ( | const CImage & | _iImage, |
LSUINT8 * | _pui8Buffer | ||
) | [static] |
Get the histogram for a given image.
_iImage | The image for which to generate a histogram. |
_pui8Buffer | The buffer where the histogram is to be stored. Must be a byte array of 256 values. |
static LSVOID LSE_CALL lsi::CImageUtils::GetHistogram | ( | const CImage & | _iImage, |
LSUINT8 * | _pui8BufferR, | ||
LSUINT8 * | _pui8BufferG, | ||
LSUINT8 * | _pui8BufferB | ||
) | [static] |
Get the 3 histograms for a given image. One histogram for each ofthe R, G, and B channels.
_iImage | The image for which to generate a histogram. |
_pui8BufferR | The buffer where the histogram for the R channel is to be stored. Must be a byte array of 256 values. |
_pui8BufferG | The buffer where the histogram for the G channel is to be stored. Must be a byte array of 256 values. |
_pui8BufferB | The buffer where the histogram for the B channel is to be stored. Must be a byte array of 256 values. |