LTIColorTransformer Class Reference

change the colorspace of the image More...

#include <lti_colorTransformer.h>

Inheritance diagram for LTIColorTransformer:

LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIImageFilter > > LTIOverrideBackgroundPixel< LTIImageFilter > LTIOverridePixelPropsData LTIImageFilter LTIOverrideBackgroundPixelData LTIImageStage LTIImage LTIReferenceCountedObject

List of all members.

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 LTIColorTransformercreate (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


Detailed Description

This class changes the colorspace of the image.

The supported color transforms are:

Examples:

Pipeline.cpp.

Definition at line 38 of file lti_colorTransformer.h.


Constructor & Destructor Documentation

LTIColorTransformer::LTIColorTransformer ( void   )  [protected]

virtual LTIColorTransformer::~LTIColorTransformer ( void   )  [protected, virtual]


Member Function Documentation

static LTIColorTransformer* LTIColorTransformer::create ( void   )  [static]

Examples:
Pipeline.cpp.

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.

Parameters:
srcImage the base image
dstPixel the desired output pixel properties

static bool LTIColorTransformer::isSupportedTransform ( const LTIPixel srcPixel,
const LTIPixel dstPixel 
) [static]

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.

Parameters:
scene the area pertaining to this request
Returns:
a bitfield itemizing the encoding modifications

Reimplemented from LTIImageFilter.

static LT_STATUS LTIColorTransformer::push ( LTIImageStage *&  pipeline,
const LTIPixel pixelProps 
) [static]

static LT_STATUS LTIColorTransformer::transformPixel ( LTIPixel newPixel,
const LTIPixel oldPixel 
) [static]

static LT_STATUS LTIColorTransformer::transformBuffer ( LTISceneBuffer dstData,
LTISceneBuffer srcData 
) [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.

Parameters:
pixelProps the band selection
fullScene the full scene to be read
Returns:
status code indicating success or failure

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.

Parameters:
stripBuffer the buffer to read the pixels into
stripScene the scene for this strip being decoded
Returns:
status code indicating success or failure

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.

Returns:
status code indicating success or failure

Reimplemented from LTIImageFilter.


The documentation for this class was generated from the following file:

LizardTech