"L. Spiro Engine"
Static Public Member Functions

lsi::CImageUtils Class Reference

Miscellaneous utility functions related to image manipulation.. More...

#include <LSIImageUtils.h>

List of all members.

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)

Detailed Description

Miscellaneous utility functions related to image manipulation..

Class CImageUtils Description: Miscellaneous utility functions related to image manipulation..


Member Function Documentation

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.

Parameters:
_pui8BufferThe histogram from which to find the high and low tons.
_fToleranceAmount of tolerance to apply while searching for the high and low tones.
_ui32LowThe returned low tone.
_ui32HighThe returned high tone.
static LSVOID LSE_CALL lsi::CImageUtils::GetHistogram ( const CImage _iImage,
LSUINT8 *  _pui8Buffer 
) [static]

Get the histogram for a given image.

Parameters:
_iImageThe image for which to generate a histogram.
_pui8BufferThe 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.

Parameters:
_iImageThe image for which to generate a histogram.
_pui8BufferRThe buffer where the histogram for the R channel is to be stored. Must be a byte array of 256 values.
_pui8BufferGThe buffer where the histogram for the G channel is to be stored. Must be a byte array of 256 values.
_pui8BufferBThe buffer where the histogram for the B channel is to be stored. Must be a byte array of 256 values.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator