15LT_BEGIN_LIZARDTECH_NAMESPACE
34#if __cplusplus >= 201103L
249 bool enforceColorSpace =
true)
const;
256#ifndef DEPRECATE_PIXEL_HELPERS
398#ifndef DEPRECATE_PIXEL_HELPERS
501#ifndef DEPRECATE_PIXEL_HELPERS
699LT_END_LIZARDTECH_NAMESPACE
lt_uint32 LT_STATUS
An integral status code.
unsigned short lt_uint16
unsigned 16-bit integer
signed char lt_int8
signed 8-bit integer
unsigned char lt_uint8
unsigned 8-bit integer
signed short lt_int16
signed 16-bit integer
unsigned int lt_uint32
unsigned 32-bit integer
signed int lt_int32
signed 32-bit integer
basic properties of a pixel
void setSampleValuesUint32(const lt_uint32 values[])
sets all samples to the given values
void setSampleValueFloat64(lt_uint16 band, double value)
sets the given sample to the given value
void setSampleValuesFromPixel(const LTIPixel &src)
sets all samples to minimum
lt_uint16 getSampleValueUint16(lt_uint16 band) const
returns the specified sample's value
bool hasAlphaBand() const
returns true if colorspace has alpha channel flags
lt_uint16 getNumBandsWithoutAlpha() const
get the number of bands not counting alpha
bool operator!=(const LTIPixel &) const
equality operator
virtual ~LTIPixel()
destructor
const void * getSampleValueAddr(lt_uint16 band) const
returns the address of the specified sample's value
void setSampleValuesSint32(lt_int32 value)
sets all samples to the given value
void setSampleValueSint32(lt_uint16 band, lt_int32 value)
sets the given sample to the given value
LT_STATUS checkImpedanceWithoutAlpha(const LTIPixel &pixel) const
LTISample * getSamples() const
void setSampleValueAddr(lt_uint16 band, const void *data) const
sets sample value by address
void setSampleValueUint16(lt_uint16 band, lt_uint16 value)
sets the given sample to the given value
LTIPixel(const LTISample *samples, lt_uint16 numBands, LTIColorSpace colorSpace=LTI_COLORSPACE_INVALID)
constructor
LTIPixel(const LTIPixel &pixel, const lt_uint16 *bandSelection, lt_uint16 numBands)
constructor
void setSampleValuesFloat32(float value)
sets all samples to the given value
lt_int8 getSampleValueSint8(lt_uint16 band) const
returns the specified sample's value
void setSampleValuesFloat32(const float values[])
sets all samples to the given values
float getSampleValueFloat32(lt_uint16 band) const
returns the specified sample's value
void setSampleValuesFloat64(const double values[])
sets all samples to the given values
void setSampleValuesUint16(lt_uint16 value)
sets all samples to the given value
void setSampleValueSint16(lt_uint16 band, lt_int16 value)
sets the given sample to the given value
void setSampleValuesToMax()
sets all samples to maximum
bool areSampleValuesMax() const
are all samples equal to the maximum value
lt_int16 getSampleValueSint16(lt_uint16 band) const
returns the specified sample's value
void setSampleValuesSint16(lt_int16 value)
sets all samples to the given value
void setSampleValuesUint16(const lt_uint16 values[])
sets all samples to the given values
void setSampleValueFloat32(lt_uint16 band, float value)
sets the given sample to the given value
void setSampleValueSint8(lt_uint16 band, lt_int8 value)
sets the given sample to the given value
LT_STATUS checkImpedance(const LTIPixel &pixel, bool enforceColorSpace=true) const
returns status code comparing two pixels
void setSampleValuesUint32(lt_uint32 value)
sets all samples to the given value
bool isSignedData() const
lt_uint32 getMaxBytesPerSample() const
returns the largest size of any sample
LTIColorSpace getColorSpace() const
get the colorspace
lt_uint32 getNumBytesWithoutAlpha() const
get the size of a pixel not counting the alpha band
void setSampleValuesUint8(const lt_uint8 values[])
sets all samples to the given values
LTIDataType getDataType() const
get the sample datatype
bool areSampleValuesMin() const
are all samples equal to the minimum value
LTIPixel(void)
constructor
void setNonAlphaSampleValuesFromPixel(const LTIPixel &src)
sets all samples to minimum
bool operator==(const LTIPixel &) const
equality operator
lt_uint8 getSampleValueUint8(lt_uint16 band) const
returns the specified sample's value
bool hasPreMultipliedAlphaBand() const
returns true if colorspace has the pre-multiplied alpha channel flag
LT_STATUS getBandSelection(lt_uint16 *&bandSelection) const
sets all samples to minimum
void setSampleValuesToMin()
sets all samples to minimum
LTIPixel(const LTIPixel &pixel, const lt_uint16 *bandSelection, lt_uint16 numBands, LTIColorSpace colorSpace)
constructor
void setSampleValuesSint8(lt_int8 value)
sets all samples to the given value
lt_uint32 getSampleValueUint32(lt_uint16 band) const
returns the specified sample's value
void setNonAlphaSampleValuesFromDouble(double value)
sets all samples to minimum
void setSampleValuesSint8(const lt_int8 values[])
sets all samples to the given values
void setSampleValuesFloat64(double value)
sets all samples to the given value
LTIPixel & operator=(const LTIPixel &)
assignment operator
void setSampleValuesSint32(const lt_int32 values[])
sets all samples to the given values
bool isMultiSpectral() const
returns true if the pixel has multi-spectral bands
double getSampleValueFloat64(lt_uint16 band) const
returns the specified sample's value
void setSampleValueUint32(lt_uint16 band, lt_uint32 value)
sets the given sample to the given value
LTISample & getSample(lt_uint16) const
void setSampleValuesFromDouble(double value)
sets all samples to the given value
LTIPixel(LTIColorSpace colorSpace, lt_uint16 numBands, LTIDataType dataType, const LTISample *samples=nullptr)
constructor
LTIColorSpace getColorSpaceWithoutAlpha() const
get the colorspace without alpha
void setSampleValueUint8(lt_uint16 band, lt_uint8 value)
sets the given sample to the given value
static LT_STATUS checkCompatible(const LTIPixel &dstPixelProps, const LTIPixel &srcPixelProps)
checks to ensure band mapping is valid
lt_uint32 getNumBytes() const
get the size of a pixel
LTIPixel(const LTIPixel &)
copy constructor
lt_uint16 getNumBands() const
get the number of bands
void setSampleValuesUint8(lt_uint8 value)
sets all samples to the given value
lt_int32 getSampleValueSint32(lt_uint16 band) const
returns the specified sample's value
LT_STATUS overrideColorSpace(LTIColorSpace colorspace)
sets all samples to minimum
void setSampleValuesSint16(const lt_int16 values[])
sets all samples to the given values
basic properties of a sample