MrSID Decode SDK for Raster Reference Manual
9.5.4.4709
|
abstract class representing an image More...
#include <lti_image.h>
Public Member Functions | |
virtual lt_uint32 | getWidth () const =0 |
get image width More... | |
virtual lt_uint32 | getHeight () const =0 |
get image height More... | |
virtual LT_STATUS | getDimsAtMag (double mag, lt_uint32 &width, lt_uint32 &height) const =0 |
get image width and height at given magnification More... | |
lt_uint16 | getNumBands () const |
get number of bands More... | |
lt_uint16 | getNumBandsWithoutAlpha () const |
get number of bands without alpha More... | |
LTIColorSpace | getColorSpace () const |
get colorspace More... | |
LTIDataType | getDataType () const |
get data type More... | |
virtual const LTIPixel & | getPixelProps () const =0 |
get the pixel properties of the image More... | |
virtual const LTIPixel * | getBackgroundPixel () const =0 |
get the values of the background pixel More... | |
virtual const LTIPixel * | getNoDataPixel () const =0 |
get the values of the "no data" (transparency) pixel More... | |
virtual const LTIPixelLookupTable * | getPixelLookupTable () const =0 |
get the color lookup table, if any More... | |
virtual const LTIPixel & | getMinDynamicRange () const =0 |
get the minimum dynamic range value of image More... | |
virtual const LTIPixel & | getMaxDynamicRange () const =0 |
get the maximum dynamic range value of image More... | |
bool | isNaturalDynamicRange () const |
check if the range is "complete" or not More... | |
virtual const LTIGeoCoord & | getGeoCoord () const =0 |
get the geographic coordinates of the image More... | |
virtual bool | isGeoCoordImplicit () const =0 |
is geo information "real" or not More... | |
virtual const LTIMetadataDatabase & | getMetadata () const =0 |
get the metadata associated with the image More... | |
virtual double | getMinMagnification () const =0 |
get the minimum magnification More... | |
virtual double | getMaxMagnification () const =0 |
get the maximum magnification More... | |
virtual bool | isSelective () const =0 |
check if image supports "random access" decoding More... | |
virtual lt_uint32 | getModifications (const LTIScene &scene) const =0 |
get the modification bitfield for this image More... | |
virtual LT_STATUS | getMetadataBlob (const char *type, LTIOStreamInf *&stream) const =0 |
extract the metadata associated with the image of the given type More... | |
lt_int64 | getNominalImageSizeWithoutAlpha () const |
get the nominal size of the image, not considering the alpha band More... | |
lt_int64 | getNominalImageSizeWithAlpha () const |
get the nominal size of the image, including the alpha band More... | |
void | getGeoPoint (LTIPosition position, double &x, double &y) const |
get position of a named point More... | |
LTIPixel * | createBackgroundPixel () const |
return new background pixel More... | |
![]() | |
virtual void | retain (void) const |
increment reference counter More... | |
virtual void | release (void) const |
decrement the reference counter and delete the object when the counter is zero More... | |
Protected Member Functions | |
LTIImage (void) | |
virtual | ~ LTIImage (void) |
![]() | |
LTIReferenceCountedObject (void) | |
virtual | ~ LTIReferenceCountedObject (void) |
The LTIImage abstract class represents the basic properties of an image, including dimensions, data type, background color, etc.
LTIImage does not support extraction of pixels (decoding); that functionality is provided by the derived class LTIImageStage.
Definition at line 32 of file lti_image.h.
|
protected |
|
protectedvirtual |
LTIPixel* LTIImage::createBackgroundPixel | ( | ) | const |
Creates and returns a new pixel of the correct background color for the image. If no background color has been set, a new black pixel will be returned (unless the image is CMYK, in which case a white pixel will be returned).
The caller takes ownership of the returned pixel.
|
pure virtual |
This function returns a pointer to an object containing the values of the background pixel of the image. If the pointer is NULL, no background color has been set for the image.
Implemented in LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > >, LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > >, LTIOverrideBackgroundPixel< LTIImageFilter >, LTIOverrideBackgroundPixel< LTIOverrideMetadata< LTIImageFilter > >, and LTIImageFilter.
LTIColorSpace LTIImage::getColorSpace | ( | ) | const |
This function returns the colorspace of the image, e.g. RGB or greyscale.
This function is equivalent to getPixelProps().getColorSpace().
LTIDataType LTIImage::getDataType | ( | ) | const |
This function returns the data type of the samples in the image, e.g. unsigned byte or 32-bit float.
This function is equivalent to getPixelProps().getDataType().
|
pure virtual |
This function returns the width and height of the image, in pixels, relative to the given magnification.
mag | magnification to determine width at |
width | the image width at the magnification |
height | the image height at the magnification |
Implemented in LTIMosaicFilter, Nitf::ImageReader, LTIEmbeddedImage, LTIMultiResFilter, LTIImageReader, and LTIImageFilter.
|
pure virtual |
This function returns the geographic coordinates of the image.
Note that if the image has no explicit geographic coordinate information, e.g. stored within the metadata of a file, the geographic coordinates are implicitly set (upperleft is (0,-height), resolution is (1,-1))
Implemented in LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > > >, LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > >, LTIOverrideGeoCoord< LTIImageFilter >, and LTIImageFilter.
void LTIImage::getGeoPoint | ( | LTIPosition | position, |
double & | x, | ||
double & | y | ||
) | const |
Returns the (x,y) position of the given named point.
position | the position to be returned |
x | the x-position of the point |
y | the y-position of the point |
|
pure virtual |
This function returns the height of the image, in pixels.
Implemented in LTIOverrideDimensions< LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > > > >, LTIOverrideDimensions< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > > > >, LTIOverrideDimensions< LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > > > >, and LTIImageFilter.
|
pure virtual |
This function returns the pixels of maximum value of the dynamic range of the image.
Implemented in LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideMetadata< LTIImageFilter > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIImageFilter > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > > >, and LTIImageFilter.
|
pure virtual |
This function returns the maximum magnification of the image. Images that do not support "zooming in" will return 1.0; images that support "res-up", e.g. MrSID, will return a value less than 1.0.
Implemented in LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > >, LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > >, and LTIImageFilter.
|
pure virtual |
This function returns a reference to the object containing the metadata associated with the image.
Implemented in LTIImageFilter, LTIOverrideMetadata< LTIImageStage >, and LTIOverrideMetadata< LTIImageFilter >.
|
pure virtual |
This function returns XMP or EXIF metadata as a blob.
type | type of metadata to extract (xmp|exif) |
stream | output stream containing the asked for metadata. The caller must delete the returned stream. |
Implemented in LTIMosaicFilter, LTIImageReader, and LTIImageFilter.
|
pure virtual |
This function returns the pixels of minimum value of the dynamic range of the image.
Implemented in LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideMetadata< LTIImageFilter > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIImageFilter > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > > >, and LTIImageFilter.
|
pure virtual |
This function returns the minimum magnification of the image. Images that do not support "zooming out" will return 1.0; images that contain "overviews", e.g. MrSID, will return a value greater than 1.0.
Implemented in LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > >, LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > >, and LTIImageFilter.
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 |
Implemented in MrSIDSingleImageReaderBase, J2KImageReader, LTIBandSelectFilter, LTIEmbeddedImage, LTIMosaicFilter, LTIDynamicRangeFilter, LTIMultiResFilter, MrSIDImageReader, LTIColorTransformer, LTIViewerImageFilter, LTIWatermarkFilter, LTITranslationFilter, LTIImageReader, and LTIImageFilter.
|
pure virtual |
This function returns a pointer to an object containing the values of the no data pixel of the image. If the pointer is NULL, no transparency color has been set for the image.
Implemented in LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > >, LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > >, LTIOverrideBackgroundPixel< LTIImageFilter >, LTIOverrideBackgroundPixel< LTIOverrideMetadata< LTIImageFilter > >, and LTIImageFilter.
lt_int64 LTIImage::getNominalImageSizeWithAlpha | ( | ) | const |
Returns number of bytes of actual data in the image, e.g. as if the image were a raw file but including any alpha band. This value is simply the product of:
Note this value may be substantially different than the "physical" image size due to compression.
lt_int64 LTIImage::getNominalImageSizeWithoutAlpha | ( | ) | const |
Returns number of bytes of actual data in the image, e.g. as if the image were a raw file but ignoring any alpha band. This value is simply the product of:
Note this value may be substantially different than the "physical" image size due to compression.
lt_uint16 LTIImage::getNumBands | ( | ) | const |
This function returns the number of bands (colors) in the image. This value is closely related to the colorspace of the image.
This function is equivalent to getPixelProps().getNumBands().
lt_uint16 LTIImage::getNumBandsWithoutAlpha | ( | ) | const |
This function returns the number of bands (colors) in the image. This value is closely related to the colorspace of the image.
This function is equivalent to getPixelProps().getNumBands().
|
pure virtual |
This function returns a pointer the color lookup table, used for indexed or palletized images. Will return NULL if no table is used.
Implemented in LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > >, and LTIImageFilter.
|
pure virtual |
This function returns an object which describes the basic properties of a pixel in the image.
Implemented in LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideMetadata< LTIImageFilter > > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIImageFilter > >, LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > > >, and LTIImageFilter.
|
pure virtual |
This function returns the width of the image, in pixels.
Implemented in LTIOverrideDimensions< LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIImageFilter > > > >, LTIOverrideDimensions< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > > > >, LTIOverrideDimensions< LTIOverridePixelProps< LTIOverrideBackgroundPixel< LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > > > > >, and LTIImageFilter.
|
pure virtual |
This function returns true if the geo information is implicit, i.e. the source image did not have native geo coord info.
Implemented in LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideStripHeight< LTIImageFilter > > >, LTIOverrideGeoCoord< LTIOverrideMagnification< LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > > > >, LTIOverrideGeoCoord< LTIImageFilter >, and LTIImageFilter.
bool LTIImage::isNaturalDynamicRange | ( | ) | const |
This function returns true if the dynamic range min/max values for the image correspond to the full range of the underlying datatype.
|
pure virtual |
Some formats, notably JPEG, do not support "selective" decoding. That is, they require that scenes being decoding must march in order down the scanlines of the image. Formats like TIFF and MrSID, however, are "selective": any scene can be requested at any time.
Implemented in LTIOverrideIsSelective< LTIOverrideStripHeight< LTIOverrideDelegates< LTIOverridePixelLookupTables< LTIOverrideMetadata< LTIImageStage > > > > >, and LTIImageFilter.
LizardTech |