MrSID Decode SDK for Raster Reference Manual
9.5.4.4709
|
change the colorspace of the image More...
#include <lti_colorTransformer.h>
Public Member Functions | |
LT_STATUS | initialize (LTIImageStage *srcImage, const LTIPixel &dstPixel) |
initializer | |
virtual lt_uint32 | getModifications (const LTIScene &scene) const |
get the modification bitfield for this image | |
Static Public Member Functions | |
static LTIColorTransformer * | create (void) |
static bool | isSupportedTransform (const LTIPixel &srcPixel, const LTIPixel &dstPixel) |
static LT_STATUS | push (LTIImageStage *&pipeline, const LTIPixel &pixelProps) |
static LT_STATUS | transformPixel (LTIPixel &newPixel, const LTIPixel &oldPixel) |
static LT_STATUS | transformBuffer (LTISceneBuffer &dstData, LTISceneBuffer &srcData) |
Protected Member Functions | |
LTIColorTransformer (void) | |
virtual | ~LTIColorTransformer (void) |
LT_STATUS | decodeBegin (const LTIPixel &pixelProps, const LTIScene &fullScene) |
start strip-based read | |
LT_STATUS | decodeStrip (LTISceneBuffer &stripBuffer, const LTIScene &stripScene) |
read a strip from the image | |
LT_STATUS | decodeEnd (void) |
finish strip-based read |
This class changes the colorspace of the image.
The supported color transforms are:
Definition at line 38 of file lti_colorTransformer.h.
LTIColorTransformer::LTIColorTransformer | ( | void | ) | [protected] |
virtual LTIColorTransformer::~LTIColorTransformer | ( | void | ) | [protected, virtual] |
static LTIColorTransformer* LTIColorTransformer::create | ( | void | ) | [static] |
LT_STATUS LTIColorTransformer::decodeBegin | ( | const LTIPixel & | pixelProps, |
const LTIScene & | fullScene | ||
) | [protected, virtual] |
This function is called by readBegin() to start the actual class-specific work for decoding a scene.
Derived classes must implement this function.
This function should never be called directly.
pixelProps | the band selection |
fullScene | the full scene to be read |
Reimplemented from LTIImageFilter.
LT_STATUS LTIColorTransformer::decodeEnd | ( | void | ) | [protected, virtual] |
This function is called by readEnd() to complete the actual class-specific work for decoding a scene.
Derived classes must implement this function.
This function should never be called directly.
Reimplemented from LTIImageFilter.
LT_STATUS LTIColorTransformer::decodeStrip | ( | LTISceneBuffer & | stripBuffer, |
const LTIScene & | stripScene | ||
) | [protected, virtual] |
This function is called by readStrip() to implement the actual class-specific work for decoding a strip of the scene.
Derived classes must implement this function.
This function should never be called directly.
stripBuffer | the buffer to read the pixels into |
stripScene | the scene for this strip being decoded |
Reimplemented from LTIImageFilter.
virtual lt_uint32 LTIColorTransformer::getModifications | ( | const LTIScene & | scene | ) | const [virtual] |
This function returns a bitfield describing what kinds of modifications have been made to the image during and since its initial encoding.
scene | the area pertaining to this request |
Reimplemented from LTIImageFilter.
LT_STATUS LTIColorTransformer::initialize | ( | LTIImageStage * | srcImage, |
const LTIPixel & | dstPixel | ||
) |
Creates an image stage with the given colorspace. The sample values will undergo the requisite color transform function to map from the input colorspace to the output colorspace.
srcImage | the base image |
dstPixel | the desired output pixel properties |
static bool LTIColorTransformer::isSupportedTransform | ( | const LTIPixel & | srcPixel, |
const LTIPixel & | dstPixel | ||
) | [static] |
static LT_STATUS LTIColorTransformer::push | ( | LTIImageStage *& | pipeline, |
const LTIPixel & | pixelProps | ||
) | [static] |
static LT_STATUS LTIColorTransformer::transformBuffer | ( | LTISceneBuffer & | dstData, |
LTISceneBuffer & | srcData | ||
) | [static] |
static LT_STATUS LTIColorTransformer::transformPixel | ( | LTIPixel & | newPixel, |
const LTIPixel & | oldPixel | ||
) | [static] |