MrSID Decode SDK for Raster Reference Manual  9.5.1.4427
LTIViewerImageFilter Class Reference

performs datatype and colorspace transforms on an image to make it displayable More...

#include <lti_viewerImageFilter.h>

Inheritance diagram for LTIViewerImageFilter:
LTIImageFilter LTIImageStage LTIImage LTIReferenceCountedObject

List of all members.

Public Member Functions

LT_STATUS initialize (LTIImageStage *srcImage, bool useDynamicRange, bool useBGR)
 initializer
virtual lt_uint32 getModifications (const LTIScene &scene) const
 get the modification bitfield for this image

Static Public Member Functions

static LTIViewerImageFiltercreate (void)

Protected Member Functions

 LTIViewerImageFilter (void)
virtual ~LTIViewerImageFilter (void)

Detailed Description

This class wraps the LTIDataType, LTIColorTransformer, and LTIDynamicRangeFilter classes in order to transform the input image into an unsigned 8-bit datatype with colorspace greyscale or RGB, as is required by most display engines.

Definition at line 30 of file lti_viewerImageFilter.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual lt_uint32 LTIViewerImageFilter::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:
scenethe area pertaining to this request
Returns:
a bitfield itemizing the encoding modifications

Reimplemented from LTIImageFilter.

LT_STATUS LTIViewerImageFilter::initialize ( LTIImageStage srcImage,
bool  useDynamicRange,
bool  useBGR 
)

Transforms the input image to unsigned 8-bit samples and a colorspace of either greyscale or RGB. This allows the image's pixels to be more easily passed to command rendering engines.

The class also allows for the dynamic range of the image to be adjusted to make the image's histogram fit the datatype width. RGB pixels can also be remapped to be in BGR format (as is required for Windows bitmaps).

Parameters:
srcImagethe input image
useDynamicRangeif set, the image data will be scaled according to the dynamic range metadata in the image (if any)
useBGRif set, RGB samples will be remapped to BGR format

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