OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimS16ImageData.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2001 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: David Burken
9 //
10 // Description:
11 //
12 // Class declaration of ossimS16ImageData. Specialized image data object for
13 // signed short data.
14 //
15 //*************************************************************************
16 // $Id: ossimS16ImageData.h 16052 2009-12-08 22:20:40Z dburken $
17 
18 #ifndef ossimS16ImageData_HEADER
19 #define ossimS16ImageData_HEADER
20 
23 
25 {
26 public:
28  ossim_uint32 bands = 1);
29 
31  ossim_uint32 bands,
32  ossim_uint32 width,
33  ossim_uint32 height);
34 
36 
37 
41  virtual ossimObject* dup()const;
42 
47  void fill(ossim_uint32 band, double value);
48 
49 
50  bool isNull(ossim_uint32 offset)const;
51  void setNull(ossim_uint32 offset);
52 
53  virtual ossimDataObjectStatus validate() const;
54 
60  virtual void getNormalizedFloat(ossim_uint32 offset,
61  ossim_uint32 bandNumber,
62  float& result)const;
63 
68  virtual void setNormalizedFloat(ossim_uint32 offset,
69  ossim_uint32 bandNumber,
70  float input);
71 
76  virtual void convertToNormalizedFloat(ossimImageData* result)const;
77 
82  virtual void convertToNormalizedDouble(ossimImageData* result)const;
83 
95  virtual void unnormalizeInput(ossimImageData* normalizedInput);
96 
100  virtual double computeAverageBandValue(ossim_uint32 bandNumber = 0);
101 
113  virtual double computeMeanSquaredError(double meanValue,
114  ossim_uint32 bandNumber = 0);
115 
116  virtual void setValue(ossim_int32 x, ossim_int32 y, double color);
117 
123  virtual void copyTileToNormalizedBuffer(double* buf) const;
124 
131  virtual void copyNormalizedBufferToTile(double* buf);
132 
137  virtual void copyTileToNormalizedBuffer(ossim_uint32 band, double* buf) const;
138  virtual void copyTileToNormalizedBuffer(ossim_uint32 band, float* buf)const;
139 
145  virtual void copyTileToNormalizedBuffer(float* buf) const;
146 
153  virtual void copyNormalizedBufferToTile(float* buf);
154 
160  virtual void copyNormalizedBufferToTile(ossim_uint32 band,
161  double* buf);
162  virtual void copyNormalizedBufferToTile(ossim_uint32 band,
163  float* buf);
164 
166  virtual ossim_float64 getMinNormalizedPix() const;
167 
168 protected:
169  virtual ~ossimS16ImageData();
171 
172 private:
173 
175 
176 TYPE_DATA
177 };
178 
180 {
181  return m_remapTable[1];
182 }
183 
184 #endif
ossim_uint32 x
void fill(ossim_uint32 band, ossim_float64 value)
will fill the entire band with the value.
virtual void setValue(ossim_int32 x, ossim_int32 y, ossim_float64 color)
#define OSSIMDLLEXPORT
virtual ossim_float64 getMinNormalizedPix() const
returns normalized minimum pixel value of band zero.
ossim_uint32 y
virtual void getNormalizedFloat(ossim_uint32 offset, ossim_uint32 bandNumber, ossim_float32 &result) const
will go to the band and offset and compute the normalized float and return it back to the caller thro...
Signed 16 bit normalized remap tables to go to/from normalized value to pixel value.
virtual ossimObject * dup() const
bool isNull(ossim_uint32 offset) const
double ossim_float64
virtual ossimDataObjectStatus validate() const
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
virtual void unnormalizeInput(ossimImageData *normalizedInput)
Will take the normalized input and convert it to this tile's data type.
virtual ossim_float64 computeMeanSquaredError(ossim_float64 meanValue, ossim_uint32 bandNumber=0) const
This will call the compute average band value and then use that in the calculation of: ...
virtual void copyTileToNormalizedBuffer(ossim_float64 *buf) const
Copies entire tile to buf passed in.
virtual ossim_float64 computeAverageBandValue(ossim_uint32 bandNumber=0) const
This will compute the average value for the band.
virtual void copyNormalizedBufferToTile(ossim_float64 *buf)
Copies buf passed in to tile.
void setNull(ossim_uint32 offset)
virtual void setNormalizedFloat(ossim_uint32 offset, ossim_uint32 bandNumber, ossim_float32 input)
This will assign to this object a normalized value by unnormalizing to its native type...
virtual void convertToNormalizedDouble(ossimImageData *result) const
Will use the memory that you pass in to normalize this data object.
ossimDataObjectStatus
Definitions for data object status.
static const ossimNormalizedS16RemapTable m_remapTable
virtual void convertToNormalizedFloat(ossimImageData *result) const
Will use the memory that you pass in to normalize this data object.
virtual ossim_float64 getMinNormalizedPix() const
int ossim_int32