MrSID Decode SDK for Raster Reference Manual
9.0.0.3864
|
performs datatype and colorspace transforms on an image to make it displayable More...
#include <lti_viewerImageFilter.h>
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 LTIViewerImageFilter * | create (void) |
Protected Member Functions | |
LTIViewerImageFilter (void) | |
virtual | ~LTIViewerImageFilter (void) |
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.
LTIViewerImageFilter::LTIViewerImageFilter | ( | void | ) | [protected] |
virtual LTIViewerImageFilter::~LTIViewerImageFilter | ( | void | ) | [protected, virtual] |
static LTIViewerImageFilter* LTIViewerImageFilter::create | ( | void | ) | [static] |
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.
scene | the area pertaining to this request |
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).
srcImage | the input image |
useDynamicRange | if set, the image data will be scaled according to the dynamic range metadata in the image (if any) |
useBGR | if set, RGB samples will be remapped to BGR format |