OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRgbToIndexFilter.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 //*************************************************************************
11 // $Id: ossimRgbToIndexFilter.h 15766 2009-10-20 12:37:09Z gpotts $
12 #ifndef ossimRgbToIndexFilter_HEADER
13 #define ossimRgbToIndexFilter_HEADER
18 #include <vector>
19 
20 class ossimImageData;
21 
45 {
46 public:
52  const ossimRgbLutDataObject& rgbLut);
53 
54  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& origin,
55  ossim_uint32 resLevel=0);
56 
57  virtual ossim_uint32 getNumberOfOutputBands() const;
58 
59  virtual ossimScalarType getOutputScalarType() const;
60 
61  void setLut(ossimRgbLutDataObject& lut);
62 
63  void setLut(const ossimFilename& file);
64 
65  virtual void disableSource();
66 
67  virtual double getNullPixelValue(ossim_uint32 band=0)const;
68 
69  virtual double getMinPixelValue(ossim_uint32 band=0)const;
70 
71  virtual double getMaxPixelValue(ossim_uint32 band=0)const;
72 
73  virtual void initialize();
74 
78  virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0)const;
79 
83  virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
84 protected:
85  virtual ~ossimRgbToIndexFilter();
86  void allocate();
87 
89 
92 
94 };
95 
96 #endif
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
Represents serializable keyword/value map.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &origin, ossim_uint32 resLevel=0)
ossimRefPtr< ossimRgbLutDataObject > theLut
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual ossimRefPtr< ossimImageData > convertInputTile(ossimRefPtr< ossimImageData > &tile)
ossimScalarType
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
virtual double getMinPixelValue(ossim_uint32 band=0) const
Returns the min pixel of the band.
ossimRefPtr< ossimImageData > theTile
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
void setLut(ossimRgbLutDataObject &lut)