15LT_BEGIN_LIZARDTECH_NAMESPACE
16#define LTI_DEFAULT_MAG_SNAP_THRESHOLD 0.41503749927884381
48 static LTIColorSpace getColorSpaceWithoutAlpha(LTIColorSpace colorspace);
114 double& drmin,
double& drmax);
131 double& window,
double& level);
256 const char*& branch);
281LT_END_LIZARDTECH_NAMESPACE
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIEndian
constants representing endianness (byte order)
#define LTI_DEFAULT_MAG_SNAP_THRESHOLD
lt_uint32 LT_STATUS
An integral status code.
unsigned char lt_uint8
unsigned 8-bit integer
unsigned int lt_uint32
unsigned 32-bit integer
signed int lt_int32
signed 32-bit integer
abstract class representing an image
static double getMinValue(LTIDataType datatype)
static double getMagForIcon(lt_uint32 width, lt_uint32 height, lt_uint32 iconsize)
get the magnification needed to scale an image to a given icon size
static bool isOctave(double mag)
convert mag to level
static bool needsSwapping(LTIDataType datatype, LTIEndian byteOrder)
static bool isIntegral(LTIDataType datatype)
returns true if datatype is integral
static bool isFloatingPoint(LTIDataType datatype)
static double levelToMag(lt_int32 level)
convert level to mag
static void convertWindowLevelToMinMax(double window, double level, double &drmin, double &drmax)
convert from window/level to min/max
static lt_uint8 getNumBytes(LTIDataType datatype)
returns number of bytes for a given a datatype
static LTIColorSpace mergeAlpha(LTIColorSpace base, LTIColorSpace alpha)
convert mag to level
static void convertMinMaxToWindowLevel(double drmin, double drmax, double &window, double &level)
convert from min/max to window/level
static bool hasAlphaBand(LTIColorSpace colorspace)
returns true with colorspace has alpha channel flags
static lt_uint8 getNumLevelsForIcon(lt_uint32 width, lt_uint32 height, lt_uint32 iconsize)
get the number of levels needed to scale an image to a given icon size
static LT_STATUS getDimsAtMag(lt_uint32 width, lt_uint32 height, double mag, lt_uint32 &scaledWidth, lt_uint32 &scaledHeight)
get dimensions at an octave
static double getMaxValue(LTIDataType datatype)
static const char * getVersionString()
get SDK version information as a string
static double snapToOctave(double mag, const LTIImage &imageStage, double threshold=0.41503749927884381)
snap to octave
static double snapToOctave(double mag, double threshold=0.41503749927884381)
snap to octave
static void getVersionInfo(lt_uint32 &major, lt_uint32 &minor, lt_uint32 &revision, lt_uint32 &build, const char *&branch)
get SDK version information
static bool isSigned(LTIDataType datatype)
returns true if datatype is signed
static double getMaxMag(lt_uint32 width, lt_uint32 height)
convert mag to level
static lt_uint8 getMinNumSamplesPerPixel(LTIColorSpace colorspace)
returns number of samples per pixel
static lt_int32 magToLevel(double mag)
convert mag to level