MrSID Decode SDK for Raster Reference Manual  9.5.4.4709
LTIColorTransformer Class Reference

change the colorspace of the image More...

#include <lti_colorTransformer.h>

Inheritance diagram for LTIColorTransformer:

Public Member Functions

LT_STATUS initialize (LTIImageStage *srcImage, const LTIPixel &dstPixel)
 initializer More...
 
virtual lt_uint32 getModifications (const LTIScene &scene) const
 

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)
 
LT_STATUS decodeStrip (LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
 
LT_STATUS decodeEnd (void)
 

Detailed Description

This class changes the colorspace of the image.

The supported color transforms are:

  • from RGB to CMYK, GRAYSCALE, or YIQ
  • from GRAYSCALE to RGB
  • from CMYK to RGB, RGBK, or YIQK
  • from YIQ to RGB
  • from YIQK to CMYK
Examples:
Pipeline.cpp.

Definition at line 38 of file lti_colorTransformer.h.

Constructor & Destructor Documentation

LTIColorTransformer::LTIColorTransformer ( void  )
protected
virtual LTIColorTransformer::~LTIColorTransformer ( void  )
protectedvirtual

Member Function Documentation

static LTIColorTransformer* LTIColorTransformer::create ( void  )
static
Examples:
Pipeline.cpp.
LT_STATUS LTIColorTransformer::decodeBegin ( const LTIPixel pixelProps,
const LTIScene fullScene 
)
protected
LT_STATUS LTIColorTransformer::decodeEnd ( void  )
protected
LT_STATUS LTIColorTransformer::decodeStrip ( LTISceneBuffer stripBuffer,
const LTIScene stripScene 
)
protected
virtual lt_uint32 LTIColorTransformer::getModifications ( const LTIScene scene) const
virtual
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
srcImagethe base image
dstPixelthe 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

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

LizardTech