8#ifndef LTI_SCENEBUFFER_H
9#define LTI_SCENEBUFFER_H
16LT_BEGIN_LIZARDTECH_NAMESPACE
57#if __cplusplus >= 201103L
360 double fuzzyThreshold,
432 const LTIMask *binaryMask);
441 double fuzzyThreshold,
583 double fuzzyThreshold,
589 LTIMask &binaryMask);
592 double fuzzyThreshold,
595 LTIMask &mask)
const;
597 double fuzzyThreshold,
606#if !defined(SWIG) && 1
607#define DEPRECATE(OLD, NEW) LT_DEPRECATED(NEW) OLD { return NEW; }
648LT_END_LIZARDTECH_NAMESPACE
#define DEPRECATE(OLD, NEW)
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIPixelFillMethod
constants representing pixel filling methods
lt_uint32 LT_STATUS
An integral status code.
unsigned short lt_uint16
unsigned 16-bit integer
unsigned int lt_uint32
unsigned 32-bit integer
signed int lt_int32
signed 32-bit integer
Abstract definition of a stream.
basic properties of a pixel
representation of a scene
class to hold data passed between image stages
LT_STATUS exportDataBSQ(void *&data) const
export to memory (BSQ)
void applyMask(const LTIMask &mask, const LTIPixel &color, lt_uint16 band)
export to memory (BSQ)
lt_int32 getNumPixels() const
get size of exposed window
static lt_uint32 addAlignment(lt_uint32 value, lt_uint32 byteAlignment)
compute alignment constraint
LT_STATUS fill(const LTIPixel &color)
export to memory (BSQ)
lt_uint16 getSourceBandIndex(lt_uint16 dstBand) const
get width of buffer
LT_STATUS importDataBIP(void *data, lt_uint16 firstNumBands)
import from another LTISceneBuffer
LT_STATUS importDataBand(lt_uint16 dstBand, const LTISceneBuffer &sourceData, lt_uint16 srcBand, const LTIMask *binaryMask)
import from another LTISceneBuffer
LT_STATUS importDataBSQ(LTIOStreamInf &stream)
import from stream (BSQ)
LT_STATUS exportDataBIP(LTIOStreamInf &stream) const
export to stream (BIP)
lt_int32 getNumRows() const
get height of buffer
LT_STATUS exportDataBSQ(void **&data) const
export to memory (BSQ)
LT_STATUS importDataBIP(void *data)
import from memory (BIP)
int getDestinationBandIndex(lt_uint16 srcBand) const
get width of buffer
LT_STATUS mergeData(LTIPixelFillMethod fillMethod, const LTISceneBuffer &srcBuf, const LTIPixel *srcNodata, const LTIPixel *dstNodata, LTIMaskSource *mask, const LTIScene &scene, double fuzzyThreshold, bool blend, float scaleAlpha)
import from another LTISceneBuffer
LTISceneBuffer(const LTIPixel &pixelProps, lt_uint32 totalNumCols, lt_uint32 totalNumRows, lt_uint32 colOffset, lt_uint32 rowOffset, lt_uint32 numCols, lt_uint32 numRows, void **bsqData)
constructor with explicit window
void zero(lt_uint16 band)
export to memory (BSQ)
LTISceneBuffer(const LTISceneBuffer &original, lt_uint32 colOffset, lt_uint32 rowOffset, lt_uint32 numCols, lt_uint32 numRows)
constructor to overlay existing LTISceneBuffer
LT_STATUS exportData(void *data, lt_uint32 pixelBytes, lt_uint32 rowBytes, lt_uint32 bandBytes) const
export to (arbitrary) memory
LTISceneBuffer(const LTIPixel &pixelProps, lt_uint32 numCols, lt_uint32 numRows, void **bsqData, lt_uint32 totalNumCols=0)
constructor with default window
LT_STATUS exportDataBIP(void *&data) const
export to memory (BIP)
void ** getBSQData() const
get pointer to data (for all bands)
LT_STATUS initialize(const LTISceneBuffer &original, lt_uint32 colOffset, lt_uint32 rowOffset, lt_uint32 numCols, lt_uint32 numRows)
destructor
static const double DefaultFuzzyThreshold
static LT_STATUS buildMask(LTIPixelFillMethod fillMethod, double mag, double fuzzyThreshold, bool blend, const LTISceneBuffer &dstBuffer, const LTIPixel *dstNodata, const LTISceneBuffer &srcBuffer, const LTIPixel *srcNodata, LTIMask &binaryMask)
export to memory (BSQ)
lt_int32 getTotalNumCols() const
get width of (entire) buffer
LT_STATUS importDataBSQ(void **data)
import from memory (BSQ)
LT_STATUS checkImpedance(const LTIPixel &p) const
verify that a buffer with the given pixel props could be imported
LTISceneBuffer()
destructor
LT_STATUS calculateMask(LTIPixelFillMethod fillMethod, double mag, double fuzzyThreshold, bool blend, const LTIPixel *srcNodata, LTIMask &mask) const
export to memory (BSQ)
void * getBandData(lt_uint16 band) const
get pointer to data (for 1 band)
LT_STATUS realloc(lt_uint32 numCols, lt_uint32 numRows)
export to memory (BSQ)
LT_STATUS mergeData(LTIPixelFillMethod fillMethod, const LTISceneBuffer &srcBuf, const LTIPixel *srcNodata, const LTIPixel *dstNodata, double mag, double fuzzyThreshold, bool blend, float scaleAlpha)
Merge pixels from another LTISceneBuffer, observing transparency.
LT_STATUS importDataBSQ(void *data)
import from memory (BSQ)
lt_uint16 getNumBands() const
get number of bands
LT_STATUS exportDataBSQ(LTIOStreamInf &stream) const
export to stream (BSQ)
const LTIPixel & getPixelProps() const
get pixel type of buffer
~LTISceneBuffer()
destructor
LT_STATUS importData(const LTIMask *binaryMask, const LTISceneBuffer &sourceData, bool blend, float scaleAlpha)
import from another LTISceneBuffer
LT_STATUS initialize(const LTIPixel &pixelProps, lt_uint32 totalNumCols, lt_uint32 totalNumRows, lt_uint32 colOffset, lt_uint32 rowOffset, lt_uint32 numCols, lt_uint32 numRows, void **bsqData)
destructor
void byteSwap()
export to memory (BSQ)
void fill(const LTIPixel &color, lt_uint16 band)
export to memory (BSQ)
LT_STATUS importDataBIP(LTIOStreamInf &stream)
import from stream (BIP)
lt_int32 getNumCols() const
get width of buffer
LT_STATUS exportDataBIP(void *data, lt_uint16 fistNumBands) const
export to memory (BSQ)
LT_STATUS initialize(const LTIPixel &pixelProps, lt_uint32 numCols, lt_uint32 numRows, void **bsqData, lt_uint32 totalNumCols=0)
destructor
void zero(void)
export to memory (BSQ)
LT_STATUS importData(const LTISceneBuffer &sourceData)
import from another LTISceneBuffer
LT_STATUS applyMask(const LTIMask &mask, const LTIPixel &color)
export to memory (BSQ)
lt_uint32 y
export to memory (BSQ)
LT_STATUS importDataBand(lt_uint16 dstBand, const LTISceneBuffer &sourceData, lt_uint16 srcBand)
import one band from another LTISceneBuffer
void * getSample(lt_uint32 x, lt_uint32 y, lt_uint16 band) const
get pointer to sample
static void shiftNoDataValue(LTIPixelFillMethod fillMethod, double fuzzyThreshold, double mag, const LTIPixel &dstMin, const LTIPixel &dstMax, const LTIPixel &dstNoData, LTIPixel &shiftedValue)
export to memory (BSQ)