#include "main.h"
#include "support.h"
LT_USE_NAMESPACE(LizardTech);
{
const LTFileSpec fileSpec(INPUT_PATH(
"meg_cr20.sid"));
TEST_BOOL(reader != nullptr);
TEST_BOOL(geo.
getX() == 0.0);
TEST_BOOL(geo.
getY() == 479.0);
if (nd != nullptr)
{
}
reader = nullptr;
}
lt_uint32 LT_STATUS
An integral status code.
#define LT_STS_Uninit
status code indicating unintialized variable
#define LT_STS_Success
status code indicating success
unsigned short lt_uint16
unsigned 16-bit integer
Represents a file or directory path.
represents a geographic coordinate
double getXRes() const
get the X resolution
double getY() const
get the upper-left Y position
double getX() const
get the upper-left X position
double getYRes() const
get the Y resolution
LTIDataType getDataType() const
get data type
lt_uint16 getNumBands() const
get number of bands
lt_int64 getNominalImageSizeWithAlpha() const
get the nominal size of the image, including the alpha band
LTIColorSpace getColorSpace() const
get colorspace
lt_uint32 getHeight() const
get image height
double getMaxMagnification() const
get the maximum magnification
lt_uint32 getWidth() const
get image width
double getMinMagnification() const
get the minimum magnification
const LTIPixel * getNoDataPixel() const
get the values of the "no data" (transparency) pixel
const LTIGeoCoord & getGeoCoord() const
get the geographic coordinates of the image
basic properties of a pixel
LTISample & getSample(lt_uint16) const
lt_uint16 getNumBands() const
get the number of bands
virtual void release(void) const
decrement the reference counter and delete the object when the counter is zero
double getValueAsDouble() const
static lt_int32 magToLevel(double mag)
convert mag to level
reader for MrSID images (MG2, MG3 and MG4)
static MrSIDImageReader * create(void)
LT_STATUS initialize(const LTFileSpec &fileSpec, bool useWorldFile=false, MrSIDMemoryUsage memoryUsage=MRSID_MEMORY_USAGE_DEFAULT, MrSIDStreamUsage streamUsage=MRSID_STREAM_USAGE_DEFAULT)
initializer