MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
lti_image.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef LTI_IMAGE_H
9 #define LTI_IMAGE_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_types.h"
14 
15 
16 LT_BEGIN_LIZARDTECH_NAMESPACE
17 
28 {
30 public:
38  virtual lt_uint32 getWidth() const = 0;
39 
47  virtual lt_uint32 getHeight() const = 0;
48 
60  virtual LT_STATUS getDimsAtMag(double mag,
61  lt_uint32 &width,
62  lt_uint32 &height) const = 0;
63 
75 
87 
98 
110 
119  virtual const LTIPixel& getPixelProps() const = 0;
120 
130  virtual const LTIPixel* getBackgroundPixel() const = 0;
131 
141  virtual const LTIPixel* getNoDataPixel() const = 0;
142 
152  virtual const LTIPixelLookupTable* getPixelLookupTable() const = 0;
153 
162  virtual const LTIPixel &getMinDynamicRange() const = 0;
163 
172  virtual const LTIPixel &getMaxDynamicRange() const = 0;
173 
182  bool isNaturalDynamicRange() const;
194  virtual const LTIGeoCoord& getGeoCoord() const = 0;
195 
204  virtual bool isGeoCoordImplicit() const = 0;
205 
214  virtual const LTIMetadataDatabase &getMetadata() const = 0;
215 
226  virtual double getMinMagnification() const = 0;
227 
238  virtual double getMaxMagnification() const = 0;
239 
251  virtual bool isSelective() const = 0;
252 
262  virtual lt_uint32 getModifications(const LTIScene &scene) const = 0;
263 
264 
275  virtual LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const;
276  virtual bool hasMetadataBlob(const char *type) const;
277 
278 
295 
312 
322  void getGeoPoint(LTIPosition position, double& x, double& y) const;
323 
337 };
338 
339 LT_END_LIZARDTECH_NAMESPACE
340 
341 #endif // LTI_IMAGE_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned short lt_uint16
unsigned 16-bit integer
Definition: lt_types.h:40
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
long long int lt_int64
signed 64-bit integer
Definition: lt_types.h:57
#define LTI_REFERENCE_COUNTED_BOILERPLATE_BASE(classname)
Macros for defining boilerplate parts of derived LTIReferenceCountedObject classes.
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIPosition
well-known points
Definition: lti_types.h:128
LTIDataType
datatypes
Definition: lti_types.h:101
LTIColorSpace
colorspaces
Definition: lti_types.h:34
Abstract definition of a stream.
represents a geographic coordinate
Definition: lti_geoCoord.h:28
abstract class representing an image
Definition: lti_image.h:28
virtual const LTIPixel * getBackgroundPixel() const =0
get the values of the background pixel
void getGeoPoint(LTIPosition position, double &x, double &y) const
get position of a named point
lt_uint16 getNumBandsWithoutAlpha() const
get number of bands without alpha
virtual const LTIPixel & getPixelProps() const =0
get the pixel properties of the image
virtual double getMaxMagnification() const =0
get the maximum magnification
virtual double getMinMagnification() const =0
get the minimum magnification
virtual lt_uint32 getModifications(const LTIScene &scene) const =0
get the modification bitfield for this image
LTIPixel * createBackgroundPixel() const
return new background pixel
LTIDataType getDataType() const
get data type
virtual const LTIPixel & getMaxDynamicRange() const =0
get the maximum dynamic range value of image
lt_uint16 getNumBands() const
get number of bands
virtual lt_uint32 getWidth() const =0
get image width
virtual const LTIPixel & getMinDynamicRange() const =0
get the minimum dynamic range value of image
virtual bool hasMetadataBlob(const char *type) const
virtual lt_uint32 getHeight() const =0
get image height
virtual bool isGeoCoordImplicit() const =0
is geo information "real" or not
virtual bool isSelective() const =0
check if image supports "random access" decoding
lt_int64 getNominalImageSizeWithAlpha() const
get the nominal size of the image, including the alpha band
virtual const LTIGeoCoord & getGeoCoord() const =0
get the geographic coordinates of the image
virtual LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const
extract the metadata associated with the image of the given type
virtual const LTIPixel * getNoDataPixel() const =0
get the values of the "no data" (transparency) pixel
lt_int64 getNominalImageSizeWithoutAlpha() const
get the nominal size of the image, not considering the alpha band
LTIColorSpace getColorSpace() const
get colorspace
bool isNaturalDynamicRange() const
check if the range is "complete" or not
virtual LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const =0
get image width and height at given magnification
virtual const LTIMetadataDatabase & getMetadata() const =0
get the metadata associated with the image
virtual const LTIPixelLookupTable * getPixelLookupTable() const =0
get the color lookup table, if any
class for storing metadata associated with an image
basic properties of a pixel
Definition: lti_pixel.h:32
color lookup table
LTIReferenceCountedObject is a base class for implementing reference counting.
representation of a scene
Definition: lti_scene.h:60

Extensis