10 #ifndef ossimNBandLutDataObject_HEADER 11 #define ossimNBandLutDataObject_HEADER 1 285 return &theLut[idx*theNumberOfBands];
294 return &theLut[idx*theNumberOfBands];
303 return &theLut[idx*theNumberOfBands];
312 return &theLut[idx*theNumberOfBands];
319 int idx = int(normalizedIndex*theNumberOfEntries);
334 ossim_uint32 idx = int(normalizedIndex*(theNumberOfEntries-1));
335 if (idx >= theNumberOfEntries)
337 idx = theNumberOfEntries-1;
344 return (theNullPixelIndex >= 0);
355 LUT_ENTRY_TYPE& minValue,
356 LUT_ENTRY_TYPE& maxValue);
464 std::vector<ossimString> getEntryLabels(
ossim_uint32 band);
466 void setEntryLables(
ossim_uint32 band, std::vector<ossimString> entryLabels);
ossim_int32 LUT_ENTRY_TYPE
bool hasNullPixelIndex() const
ossim_uint32 getNumberOfBands() const
LUT_ENTRY_TYPE * operator[](ossim_int32 idx)
Represents serializable keyword/value map.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
friend OSSIMDLLEXPORT std::ostream & operator<<(std::ostream &out, const ossimObject &obj)
const LUT_ENTRY_TYPE * operator[](ossim_int32 idx) const
std::map< ossim_uint32, std::vector< ossimString > > m_entryLabels
ossim_uint32 theNumberOfEntries
ossim_uint32 getNumberOfEntries() const
unsigned int ossim_uint32
LUT_ENTRY_TYPE * operator[](ossim_uint32 idx)
const LUT_ENTRY_TYPE * operator[](ossim_uint32 idx) const
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
ossim_uint32 theNumberOfBands
ossimScalarType theBandScalarType
ossimReferenced & operator=(const ossimReferenced &)
LUT_ENTRY_TYPE * operator[](double normalizedIndex)
void setNullPixelIndex(ossim_int32 idx)
Allows you to specify which entry is to be designated as an invalid entry.
const LUT_ENTRY_TYPE * operator[](double normalizedIndex) const
class ossimNBandLutDataObject
ossim_int32 getNullPixelIndex() const
ossim_int32 theNullPixelIndex
ossimObject * dup() const
std::basic_ostream< char > ostream
Base class for char output streams.