OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTwoColorView.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------
2 // License: MIT. See top level LICENSE.txt file.
3 //
4 // Author: Garrett Potts
5 //
6 //-------------------------------------------------------------------
7 // $Id$
8 #ifndef ossimTwoColorView_HEADER
9 #define ossimTwoColorView_HEADER 1
12 
19 {
20 public:
21 
27  {
28  UNKNOWN = 0,
29  MIN = 1,
30  OLD = 2,
31  NEW = 3
32  };
33 
35  virtual ossim_uint32 getNumberOfOutputBands() const;
40  ossim_uint32 resLevel=0);
42 
43  double getNullPixelValue(ossim_uint32 band)const;
44  double getMinPixelValue(ossim_uint32 band)const;
45  double getMaxPixelValue(ossim_uint32 band)const;
46 
77  void setBandIndexMapping(
78  ossim_uint32 oldInputBandIndex,
79  ossim_uint32 newInputBandIndex,
80  ossimTwoColorMultiViewOutputSource redOutputSource,
81  ossimTwoColorMultiViewOutputSource grnOutputSource,
82  ossimTwoColorMultiViewOutputSource bluOutputSource);
83 
84  virtual void initialize();
85 
86 protected:
87  void allocate();
88  void runAlgorithm(ossimImageData* newData, ossimImageData* oldData);
89  void runNative8(ossimImageData* newData, ossimImageData* oldData);
90  void runNorm(ossimImageData* newData, ossimImageData* oldData);
91 
102 
103 TYPE_DATA
104 };
105 
106 #endif /* #ifndef ossimTwoColorView_HEADER */
ossimRefPtr< ossimImageSource > m_oldInput
ossimTwoColorMultiViewOutputSource m_grnSource
This is a 2 color view of the input.
This will be a base for all combiners.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
virtual double getMinPixelValue(ossim_uint32 band=0) const
Returns the min pixel of the band.
ossimTwoColorMultiViewOutputSource m_bluSource
ossim_uint32 m_oldInputBandIndex
ossim_uint32 m_newInputBandIndex
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
#define TYPE_DATA
Definition: ossimRtti.h:339
ossimTwoColorMultiViewOutputSource m_redSource
unsigned int ossim_uint32
ossimRefPtr< ossimImageData > m_twoColorTile
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
ossimScalarType
ossimRefPtr< ossimImageSource > m_newInput
#define MIN(x, y)
#define OSSIM_DLL
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
ossimTwoColorMultiViewOutputSource
Enumerations for mapping inputs to red, green and blue output channels.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)