23 m_newInputBandIndex(0),
24 m_oldInputBandIndex(0),
142 if ( o &&
n && r && g && b )
155 if( ( *
n == NP ) && ( *o == NP ) )
165 newPix = (*
n != NP) ? *
n : MP;
166 oldPix = (*o != NP) ? *o : MP;
230 std::vector<ossim_float32> oldDataBuffer(MAX_IDX);
231 std::vector<ossim_float32> newDataBuffer(MAX_IDX);
246 if ( o &&
n && r && g && b )
260 if( ( *
n == NP ) && ( *o == NP ) )
275 tmpPix = (*n) * 255.0;
278 tmpPix = (tmpPix <= 255.0) ? ( (tmpPix >= 1.0) ? tmpPix : 1.0) : 255.0;
292 tmpPix = (*o) * 255.0;
295 tmpPix = (tmpPix <= 255.0) ? ( (tmpPix >= 1.0) ? tmpPix : 1.0) : 255.0;
ossimRefPtr< ossimImageSource > m_oldInput
ossimTwoColorMultiViewOutputSource m_grnSource
virtual bool isSourceEnabled() const
virtual void initialize()
virtual ossim_uint32 getNumberOfBands() const
This is a 2 color view of the input.
virtual void setImageRectangle(const ossimIrect &rect)
void runAlgorithm(ossimImageData *newData, ossimImageData *oldData)
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.
virtual void copyTileBandToNormalizedBuffer(ossim_uint32 band, ossim_float64 *buf) const
Will copy this tiles specified band number to the normalized buffer.
double getMinPixelValue(ossim_uint32 band) const
Returns the min pixel of the band.
double getMaxPixelValue(ossim_uint32 band) const
Returns the max pixel of the band.
void setBandIndexMapping(ossim_uint32 oldInputBandIndex, ossim_uint32 newInputBandIndex, ossimTwoColorMultiViewOutputSource redOutputSource, ossimTwoColorMultiViewOutputSource grnOutputSource, ossimTwoColorMultiViewOutputSource bluOutputSource)
Sets which bands to use from inputs, and which inputs to use for output red, green and blue channels...
ossimTwoColorMultiViewOutputSource m_bluSource
virtual void initialize()
Initialize the data buffer.
void runNorm(ossimImageData *newData, ossimImageData *oldData)
ossim_uint32 m_oldInputBandIndex
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
RTTI_DEF1(ossimTwoColorView, "ossimTwoColorView", ossimImageCombiner)
virtual ossimRefPtr< ossimImageData > getNextTile(ossim_uint32 &returnedIdx, const ossim_uint32 startIdx, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
static ossimImageDataFactory * instance()
ossim_uint32 m_newInputBandIndex
virtual ossimDataObjectStatus validate() const
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
os2<< "> n<< " > nendobj n
virtual void initialize()
ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
virtual ossim_uint32 getSizePerBand() const
Returns the number of pixels in a single band in a tile.
ossimTwoColorMultiViewOutputSource m_redSource
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
unsigned int ossim_uint32
ossimRefPtr< ossimImageData > m_twoColorTile
double getNullPixelValue(ossim_uint32 band) const
Each band has a null pixel associated with it.
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual ossimRefPtr< ossimImageData > create(ossimSource *owner, ossimScalarType scalar, ossim_uint32 bands=1) const
ossimRefPtr< ossimImageSource > m_newInput
virtual void makeBlank()
Initializes data to null pixel values.
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
virtual const void * getBuf() const
virtual ossim_uint32 getNumberOfInputs() const
Returns the number of input objects.
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
void runNative8(ossimImageData *newData, ossimImageData *oldData)
ossimTwoColorMultiViewOutputSource
Enumerations for mapping inputs to red, green and blue output channels.
unsigned char ossim_uint8
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)