OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimU8ImageData.h>
Public Member Functions | |
ossimU8ImageData (ossimSource *source=NULL, ossim_uint32 bands=1) | |
ossimU8ImageData (ossimSource *source, ossim_uint32 bands, ossim_uint32 width, ossim_uint32 height) | |
ossimU8ImageData (const ossimU8ImageData &rhs) | |
virtual ossimObject * | dup () const |
void | fill (ossim_uint32 band, double value) |
void | fill (double value) |
bool | isNull (ossim_uint32 offset) const |
void | setNull (ossim_uint32 offset) |
virtual ossimDataObjectStatus | validate () const |
virtual void | getNormalizedFloat (ossim_uint32 offset, ossim_uint32 bandNumber, float &result) const |
virtual void | setNormalizedFloat (ossim_uint32 offset, ossim_uint32 bandNumber, float input) |
virtual void | convertToNormalizedFloat (ossimImageData *result) const |
virtual void | convertToNormalizedDouble (ossimImageData *result) const |
virtual void | unnormalizeInput (ossimImageData *normalizedInput) |
virtual double | computeAverageBandValue (ossim_uint32 bandNumber=0) |
virtual double | computeMeanSquaredError (double meanValue, ossim_uint32 bandNumber=0) |
virtual void | setValue (ossim_int32 x, ossim_int32 y, double color) |
virtual void | copyTileToNormalizedBuffer (double *buf) const |
virtual void | copyTileToNormalizedBuffer (float *buf) const |
virtual void | copyTileToNormalizedBuffer (ossim_uint32 band, double *buf) const |
virtual void | copyTileToNormalizedBuffer (ossim_uint32 band, float *buf) const |
virtual void | copyNormalizedBufferToTile (double *buf) |
virtual void | copyNormalizedBufferToTile (float *buf) |
virtual void | copyNormalizedBufferToTile (ossim_uint32 band, double *buf) |
virtual void | copyNormalizedBufferToTile (ossim_uint32 band, float *buf) |
virtual ossim_float64 | getMinNormalizedPix () const |
![]() | |
ossimImageData (const ossimImageData &rhs) | |
copy constructor More... | |
ossimImageData () | |
ossimImageData (ossimSource *source, ossimScalarType scalar, ossim_uint32 bands=1) | |
Constructor. More... | |
ossimImageData (ossimSource *source, ossimScalarType scalar, ossim_uint32 bands, ossim_uint32 width, ossim_uint32 height) | |
Constructor. More... | |
virtual | ~ossimImageData () |
virtual destructor More... | |
virtual const ossimImageData & | operator= (const ossimImageData &rhs) |
assignment operator= More... | |
virtual ossim_uint32 | getWidth () const |
virtual ossim_uint32 | getHeight () const |
virtual ossimIrect | getImageRectangle () const |
virtual void | getWidthHeight (ossim_uint32 &w, ossim_uint32 &h) |
virtual void | setWidth (ossim_uint32 width) |
virtual void | setHeight (ossim_uint32 height) |
virtual void | setWidthHeight (ossim_uint32 w, ossim_uint32 h) |
virtual void | setImageRectangleAndBands (const ossimIrect &rect, ossim_uint32 numberOfBands) |
virtual void | setImageRectangle (const ossimIrect &rect) |
virtual void | setOrigin (const ossimIpt &origin) |
virtual void | assign (const ossimDataObject *data) |
virtual void | assign (const ossimImageData *data) |
virtual void | assignBand (const ossimImageData *data, ossim_uint32 source_band, ossim_uint32 output_band) |
virtual ossim_uint32 | getHashId () const |
Uses prime numbers as coefficients for this summation. More... | |
virtual void | setNullPix (ossim_float64 null_pix) |
virtual void | setNullPix (ossim_float64 null_pix, ossim_uint32 band) |
virtual void | setNullPix (const ossim_float64 *nullPixArray, ossim_uint32 numberOfValues) |
virtual void | setMinPix (ossim_float64 min_pix) |
virtual void | setMinPix (ossim_float64 min_pix, ossim_uint32 band) |
virtual void | setMinPix (const ossim_float64 *minPixArray, ossim_uint32 numberOfValues) |
virtual void | setMaxPix (ossim_float64 max_pix) |
virtual void | setMaxPix (ossim_float64 max_pix, ossim_uint32 band) |
virtual void | setMaxPix (const ossim_float64 *maxPixArray, ossim_uint32 numberOfValues) |
virtual const ossimIpt & | getOrigin () const |
virtual void | computeMinMaxPix (std::vector< ossim_float64 > &minBands, std::vector< ossim_float64 > &maxBands) const |
If the minBands and maxBands are empty or not equal to the imageData's current number of bands it will erase the contents, resize, and then replace the values in the passed in array with this objects min max values. More... | |
virtual void | computeMinMaxNulPix (std::vector< ossim_float64 > &minBands, std::vector< ossim_float64 > &maxBands, std::vector< ossim_float64 > &nulBands) const |
Scans tile for min, max, nulls. More... | |
virtual const ossim_float64 * | getNullPix () const |
virtual const ossim_float64 * | getMinPix () const |
virtual const ossim_float64 * | getMaxPix () const |
virtual ossim_float64 | getNullPix (ossim_uint32 band) const |
virtual ossim_float64 | getMinPix (ossim_uint32 band) const |
virtual ossim_float64 | getMaxPix (ossim_uint32 band) const |
virtual ossimString | getScalarTypeAsString () const |
virtual ossim_uint32 | getNumberOfBands () const |
virtual void | setNumberOfBands (ossim_uint32 bands, bool reallocate=false) |
virtual ossim_float64 | getPix (const ossimIpt &position, ossim_uint32 band=0) const |
Will return the pixel at location position. More... | |
virtual ossim_float64 | getPix (ossim_uint32 offset, ossim_uint32 band=0) const |
Will return the pixel at offset and band number. More... | |
void | fill (ossim_uint32 band, ossim_float64 value) |
will fill the entire band with the value. More... | |
void | fill (ossim_float64 value) |
will fill all bands with the passed in value. More... | |
void | createTestTile () |
Creates a step wedge for testing only. More... | |
bool | isNull (ossim_uint32 offset) const |
bool | isNull (ossim_uint32 offset, ossim_uint32 band) const |
void | setNull (ossim_uint32 offset) |
void | setNull (ossim_uint32 offset, ossim_uint32 band) |
bool | isNull (const ossimIpt &pt) const |
void | setNull (const ossimIpt &pt) |
bool | isNull (const ossimIpt &pt, ossim_uint32 band) const |
void | setNull (const ossimIpt &pt, ossim_uint32 band) |
virtual bool | isValidBand (ossim_uint32 band) const |
virtual ossimRefPtr< ossimImageData > | newNormalizedFloat () const |
Will take this tile and normalize it to a newly allocated floating point tile. More... | |
virtual ossimImageData * | newNormalizedDouble () const |
Will take this tile and normalize it to a newly allocated double point tile. More... | |
template<class T > | |
void | copyTileToFloatBuffer (T, ossim_float32 *buf) const |
virtual ossim_float64 | computeAverageBandValue (ossim_uint32 bandNumber=0) const |
This will compute the average value for the band. More... | |
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: More... | |
virtual void | populateHistogram (ossimRefPtr< ossimMultiBandHistogram > histo) |
virtual void | setHistogram (ossimRefPtr< ossimMultiResLevelHistogram > histo) |
ossimRefPtr< ossimMultiResLevelHistogram > | getHistogram () |
virtual bool | hasAlpha () const |
virtual const ossim_uint8 * | getAlphaBuf () const |
virtual ossim_uint8 * | getAlphaBuf () |
virtual const void * | getBuf () const |
virtual const ossim_uint8 * | getUcharBuf () const |
virtual const ossim_uint16 * | getUshortBuf () const |
virtual const ossim_sint16 * | getSshortBuf () const |
virtual const ossim_float32 * | getFloatBuf () const |
virtual const ossim_float64 * | getDoubleBuf () const |
virtual void * | getBuf () |
virtual ossim_uint8 * | getUcharBuf () |
virtual ossim_uint16 * | getUshortBuf () |
virtual ossim_sint16 * | getSshortBuf () |
virtual ossim_float32 * | getFloatBuf () |
virtual ossim_float64 * | getDoubleBuf () |
virtual const void * | getBuf (ossim_uint32 band) const |
virtual const ossim_uint8 * | getUcharBuf (ossim_uint32 band) const |
virtual const ossim_uint16 * | getUshortBuf (ossim_uint32 band) const |
virtual const ossim_sint16 * | getSshortBuf (ossim_uint32 band) const |
virtual const ossim_float32 * | getFloatBuf (ossim_uint32 band) const |
virtual const ossim_float64 * | getDoubleBuf (ossim_uint32 band) const |
virtual void * | getBuf (ossim_uint32 band) |
virtual ossim_uint8 * | getUcharBuf (ossim_uint32 band) |
virtual ossim_uint16 * | getUshortBuf (ossim_uint32 band) |
virtual ossim_sint16 * | getSshortBuf (ossim_uint32 band) |
virtual ossim_float32 * | getFloatBuf (ossim_uint32 band) |
virtual ossim_float64 * | getDoubleBuf (ossim_uint32 band) |
virtual ossim_uint32 | getSize () const |
Returns the total number of pixels in a tile for all bands. More... | |
virtual ossim_uint32 | getSizePerBand () const |
Returns the number of pixels in a single band in a tile. More... | |
virtual ossim_uint32 | getSizePerBandInBytes () const |
Returns the number of bytes in single band of the tile. More... | |
virtual ossim_uint32 | getDataSizeInBytes () const |
virtual ossim_uint32 | getSizeInBytes () const |
Returns the total number of bytes for all bands. More... | |
virtual void | makeBlank () |
Initializes data to null pixel values. More... | |
virtual void | initialize () |
Initialize the data buffer. More... | |
virtual bool | write (const ossimFilename &f) const |
Writes tile to stream. More... | |
virtual void | copyTileBandToNormalizedBuffer (ossim_uint32 band, ossim_float64 *buf) const |
Will copy this tiles specified band number to the normalized buffer. More... | |
virtual void | copyTileBandToNormalizedBuffer (ossim_uint32 band, ossim_float32 *buf) const |
Will copy this tiles specified band number to the normalized buffer. More... | |
virtual bool | isWithin (ossim_int32 x, ossim_int32 y) |
virtual void | loadBand (const void *src, const ossimIrect &src_rect, ossim_uint32 band) |
virtual void | loadBand (const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect, ossim_uint32 band) |
virtual void | loadTile (const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type) |
virtual void | loadTileWithAlpha (const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type) |
virtual void | loadTile (const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect, ossimInterleaveType il_type) |
virtual void | nullTileAlpha (const ossim_uint8 *src, const ossimIrect &src_rect, bool mutliplyAlphaFlag=false) |
virtual void | nullTileAlpha (const ossim_uint8 *src, const ossimIrect &src_rect, const ossimIrect &clip_rect, bool multiplyAlphaFlag=false) |
virtual void | loadTile (const ossimImageData *src) |
Will load a tile of different types. More... | |
virtual void | loadTileFrom1Band (const ossimImageData *data) |
virtual void | loadTileFrom1Band (const void *src, const ossimIrect &src_rect) |
virtual void | loadShortBand (const void *src, const ossimIrect &src_rect, ossim_uint32 band, bool swap_bytes=false) |
Specialized to load a tile from a short (16 bit scalar type) buffer. More... | |
virtual void | unloadBand (void *dest, ossim_uint32 src_band, ossim_uint32 dest_band, const ossimIrect &dest_rect, ossimInterleaveType il_type=OSSIM_BSQ, OverwriteBandRule ow_type=NULL_RULE) const |
This routine is designed for overwriting a selected band of the destination buffer 'dest' by an independent selected band of the source buffer according to a user-selected rule, defined by OverwriteBandRule. More... | |
virtual void | unloadBand (void *dest, ossim_uint32 src_band, ossim_uint32 dest_band, const ossimIrect &dest_rect, const ossimIrect &clip_rect, ossimInterleaveType il_type=OSSIM_BSQ, OverwriteBandRule ow_type=NULL_RULE) const |
This routine is designed for overwriting a selected band of the destination buffer 'dest' by an independent selected band of the source buffer according to a user-selected rule, defined by OverwriteBandRule. More... | |
virtual void | unloadBand (void *dest, const ossimIrect &dest_rect, ossim_uint32 src_band) const |
virtual void | unloadBand (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect, ossim_uint32 src_band) const |
virtual void | unloadTile (void *dest, const ossimIrect &dest_rect, ossimInterleaveType il_type) const |
virtual void | unloadTile (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect, ossimInterleaveType il_type) const |
virtual void | unloadTileToBipAlpha (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
virtual bool | isPointWithin (const ossimIpt &point) const |
virtual bool | isPointWithin (ossim_int32 x, ossim_int32 y) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual void | stretchMinMax () |
Performs linear stretch on tile data from min/max to limits of scalar type. More... | |
virtual void | computeAlphaChannel () |
Computes the alpha channel. More... | |
virtual void | copyLine (const void *src, ossim_int32 lineNumber, ossim_int32 lineStartSample, ossim_int32 lineStopSample, ossimInterleaveType lineInterleave) |
Method to copy a single line to the tile. More... | |
void | setIndexedFlag (bool flag) |
Sets the indexed flag. More... | |
bool | getIndexedFlag () const |
ossim_float64 | percentFull () const |
Returns the percentage (0-100) of data buffer containing non-null (valid) entries. More... | |
virtual bool | isEqualTo (const ossimDataObject &rhs, bool deepTest=false) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
template<class T > | |
void | computeMinMaxPix (T, vector< ossim_float64 > &minBands, vector< ossim_float64 > &maxBands) const |
template<class T > | |
void | computeMinMaxNulPix (T, vector< ossim_float64 > &minBands, vector< ossim_float64 > &maxBands, vector< ossim_float64 > &nulBands) const |
![]() | |
ossimRectilinearDataObject () | |
default constructor More... | |
ossimRectilinearDataObject (const ossimRectilinearDataObject &rhs) | |
ossimRectilinearDataObject (ossim_uint32 numberOfSpatialComponents, ossimSource *owner, ossim_uint32 numberOfDataComponents, ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN, ossimDataObjectStatus status=OSSIM_NULL) | |
ossimRectilinearDataObject (ossimSource *owner, ossim_uint32 numberOfDataComponents, ossim_uint32 length, ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN, ossimDataObjectStatus status=OSSIM_NULL) | |
This is a helper constructor that allows one to instantiate a one dimensional Spatial component with N number of data components. More... | |
ossimRectilinearDataObject (ossimSource *owner, ossim_uint32 numberOfDataComponents, ossim_uint32 width, ossim_uint32 height, ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN, ossimDataObjectStatus status=OSSIM_NULL) | |
This is a helper constructor that allows one to instantiate a two dimensional Spatial component (WidthxHeight) with N number of data components. More... | |
ossimRectilinearDataObject (ossimSource *owner, ossim_uint32 numberOfDataComponents, ossim_uint32 width, ossim_uint32 height, ossim_uint32 depth, ossimScalarType scalarType=OSSIM_SCALAR_UNKNOWN, ossimDataObjectStatus status=OSSIM_NULL) | |
This is a helper constructor that allows one to instantiate a two dimensional Spatial component (WidthxHeightxDepth) with N number of data components. More... | |
virtual | ~ossimRectilinearDataObject () |
virtual void | setNumberOfDataComponents (ossim_uint32 n) |
How many components make up this data object. More... | |
virtual void | setSpatialExtents (ossim_uint32 *extents, ossim_uint32 size) |
virtual void | setScalarType (ossimScalarType type) |
See ossimScalarType in ossimConstants for a full list. More... | |
virtual ossim_uint32 | getNumberOfDataComponents () const |
virtual ossim_uint32 | getNumberOfSpatialComponents () const |
virtual const ossim_uint32 * | getSpatialExtents () const |
virtual ossimScalarType | getScalarType () const |
virtual ossim_uint32 | getScalarSizeInBytes () const |
virtual void | assign (const ossimRectilinearDataObject *data) |
virtual ossim_uint32 | computeSpatialProduct () const |
virtual const ossimRectilinearDataObject & | operator= (const ossimRectilinearDataObject &rhs) |
assignment operator= More... | |
![]() | |
ossimDataObject (ossimSource *source=0, ossimDataObjectStatus status=OSSIM_STATUS_UNKNOWN) | |
ossimDataObject (const ossimDataObject &rhs) | |
virtual | ~ossimDataObject () |
virtual void | setOwner (ossimSource *aSource) |
Sets the owner of this Data object. More... | |
virtual ossimSource * | getOwner () |
virtual const ossimSource * | getOwner () const |
virtual void | setDataObjectStatus (ossimDataObjectStatus status) const |
Full list found in ossimConstants.h. More... | |
virtual ossimDataObjectStatus | getDataObjectStatus () const |
virtual ossimString | getDataObjectStatusString () const |
virtual ossim_uint32 | getObjectSizeInBytes () const |
virtual bool | isInitialize () const |
This is to be overriden in the derived classes so they can check If their data is null. More... | |
virtual const ossimDataObject * | operator= (const ossimDataObject *rhs) |
virtual const ossimDataObject & | operator= (const ossimDataObject &rhs) |
virtual bool | operator== (const ossimDataObject &rhs) const |
virtual bool | operator!= (const ossimDataObject &rhs) const |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
Protected Member Functions | |
virtual | ~ossimU8ImageData () |
![]() | |
template<class T > | |
void | copyLineTemplate (T dummyTemplate, const void *src, ossim_int32 lineNumber, ossim_int32 lineStartSample, ossim_int32 lineStopSample, ossimInterleaveType lineInterleave) |
Templated copy line method. More... | |
template<class T > | |
void | stretchMinMax (T dummyTemplate) |
Templated stretch method. More... | |
template<class T > | |
void | computeAlphaChannel (T dummyTemplate) |
Templated compute alpha channel. More... | |
template<class T > | |
ossimDataObjectStatus | validate (T dummyTemplate) const |
Templated validate method. More... | |
template<class T > | |
void | makeBlank (T dummyTemplate) |
Templated makeBlank method. More... | |
template<class T > | |
ossim_float64 | computeMeanSquaredError (T dummyTemplate, ossim_float64 meanValue, ossim_uint32 bandNumber) const |
Templated computeMeanSquaredError method. More... | |
template<class T > | |
ossim_float64 | computeAverageBandValue (T dummyTemplate, ossim_uint32 bandNumber) const |
Templated computeAverageBandValue method. More... | |
void | loadTileFromBip (const void *src, const ossimIrect &src_rect) |
void | loadTileFromBipAlpha (const void *src, const ossimIrect &src_rect) |
void | loadTileFromBil (const void *src, const ossimIrect &src_rect) |
void | loadTileFromBsq (const void *src, const ossimIrect &src_rect) |
void | loadTileFromBip (const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
void | loadTileFromBil (const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
void | loadTileFromBsq (const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
void | unloadTileToBip (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
void | unloadTileToBil (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
void | unloadTileToBsq (void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
virtual void | unloadBandToBsq (void *dest, ossim_uint32 src_band, ossim_uint32 dest_band, const ossimIrect &dest_rect, const ossimIrect &clip_rect, OverwriteBandRule ow_type=NULL_RULE) const |
Called from public unloadBand() routines that have an OverwriteBandRule interface. More... | |
template<class T > | |
void | copyTileToNormalizedBuffer (T dummyTemplate, ossim_float64 *buf) const |
Copies entire tile to buf passed in. More... | |
template<class T > | |
void | copyTileToNormalizedBuffer (T dummyTemplate, ossim_float32 *buf) const |
template<class T > | |
void | copyTileToNormalizedBuffer (T dummyTemplate, ossim_uint32 band, ossim_float64 *buf) const |
Will copy this tiles specified band number to the normalized buffer. More... | |
template<class T > | |
void | copyTileToNormalizedBuffer (T dummyTemplate, ossim_uint32 band, ossim_float32 *buf) const |
template<class T > | |
void | copyNormalizedBufferToTile (T dummyTemplate, ossim_float64 *buf) |
Copies buf passed in to tile. More... | |
template<class T > | |
void | copyNormalizedBufferToTile (T dummyTemplate, ossim_float32 *buf) |
template<class T > | |
void | copyNormalizedBufferToTile (T dummyTemplate, ossim_uint32 band, ossim_float64 *buf) |
template<class T > | |
void | copyNormalizedBufferToTile (T dummyTemplate, ossim_uint32 band, ossim_float32 *buf) |
template<class T > | |
void | computeMinMaxPix (T dummyValue, std::vector< ossim_float64 > &minBands, std::vector< ossim_float64 > &maxBands) const |
template<class T > | |
void | computeMinMaxNulPix (T dummyValue, std::vector< ossim_float64 > &minBands, std::vector< ossim_float64 > &maxBands, std::vector< ossim_float64 > &nulBands) const |
template<class T > | |
void | loadBandTemplate (T, const void *src, const ossimIrect &src_rect, ossim_uint32 band) |
template<class T > | |
void | loadBandTemplate (T, const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect, ossim_uint32 band) |
template<class T > | |
void | nullTileAlphaTemplate (T, const ossim_uint8 *src, const ossimIrect &src_rect, const ossimIrect &clip_rect, bool multiplyAlphaFlag=false) |
template<class T > | |
void | loadTileFromBipTemplate (T, const void *src, const ossimIrect &src_rect) |
template<class T > | |
void | loadTileFromBipAlphaTemplate (T, const void *src, const ossimIrect &src_rect) |
template<class T > | |
void | loadTileFromBipTemplate (T, const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
template<class T > | |
void | loadTileFromBipAlphaTemplate (T, const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
template<class T > | |
void | loadTileFromBilTemplate (T, const void *src, const ossimIrect &src_rect) |
template<class T > | |
void | loadTileFromBilTemplate (T, const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
template<class T > | |
void | loadTileFromBsqTemplate (T, const void *src, const ossimIrect &src_rect) |
template<class T > | |
void | loadTileFromBsqTemplate (T, const void *src, const ossimIrect &src_rect, const ossimIrect &clip_rect) |
template<class T > | |
void | unloadTileToBipTemplate (T, void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
template<class T > | |
void | unloadTileToBipAlphaTemplate (T, void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
template<class T > | |
void | unloadTileToBilTemplate (T, void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
template<class T > | |
void | unloadTileToBsqTemplate (T, void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect) const |
template<class T > | |
void | unloadBandTemplate (T, void *dest, const ossimIrect &dest_rect, const ossimIrect &clip_rect, ossim_uint32 band) const |
template<class T > | |
void | unloadBandToBsqTemplate (T, void *dest, ossim_uint32 src_band, ossim_uint32 dest_band, const ossimIrect &dest_rect, const ossimIrect &clip_rect, OverwriteBandRule ow_type=NULL_RULE) const |
template<class T > | |
void | createTestTile (T) |
Creates a test tile for scalar type for testing only. More... | |
virtual void | initializeDefaults () |
initializeDefaults() Resizes and sets min/max/null arrays to number of bands and some default value for scalar type. More... | |
virtual void | initializeMinDefault () |
initializeMinDefault() Resizes theMinPixelValue array to number of bands and initializes to the default min for scalar type. More... | |
virtual void | initializeMaxDefault () |
initializeMaxDefault() Resizes theMaxPixelValue array to number of bands and initializes to the default max for scalar type. More... | |
virtual void | initializeNullDefault () |
initializeNullDefault() Resizes theNullPixelValue array to number of bands and initializes to the default null for scalar type. More... | |
bool | hasSameDimensionsAs (ossimImageData *data) const |
![]() | |
virtual | ~ossimReferenced () |
Static Private Attributes | |
static const ossimNormalizedU8RemapTable | m_remapTable |
Definition at line 30 of file ossimU8ImageData.h.
ossimU8ImageData::ossimU8ImageData | ( | ossimSource * | source = NULL , |
ossim_uint32 | bands = 1 |
||
) |
ossimU8ImageData::ossimU8ImageData | ( | ossimSource * | source, |
ossim_uint32 | bands, | ||
ossim_uint32 | width, | ||
ossim_uint32 | height | ||
) |
Definition at line 45 of file ossimU8ImageData.cpp.
|
inline |
Definition at line 41 of file ossimU8ImageData.h.
|
protectedvirtual |
Definition at line 58 of file ossimU8ImageData.cpp.
|
virtual |
This will compute the average value for the band.
Definition at line 288 of file ossimU8ImageData.cpp.
References ossimImageData::getHeight(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), and isNull().
|
virtual |
This will call the compute average band value and then use that in the calculation of:
It will then do a SUM[(Mean - Actual)^2]/width*height.
This is the average variance from the passed in mean. Basically think of the mean as a completely grey image and we would like to see how this image varies from the passed in mean.
Definition at line 257 of file ossimU8ImageData.cpp.
References ossimImageData::getHeight(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), and isNull().
|
virtual |
Will use the memory that you pass in to normalize this data object.
Reimplemented from ossimImageData.
Definition at line 173 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), ossimRectilinearDataObject::m_numberOfDataComponents, m_remapTable, ossimNormalizedU8RemapTable::normFromPix(), OSSIM_NORMALIZED_FLOAT, OSSIM_NULL, and size.
|
virtual |
Will use the memory that you pass in to normalize this data object.
Reimplemented from ossimImageData.
Definition at line 137 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), ossimRectilinearDataObject::m_numberOfDataComponents, m_remapTable, OSSIM_NORMALIZED_FLOAT, OSSIM_NULL, and size.
|
virtual |
Copies buf passed in to tile. Data is unnormalized to the tile's scalar type. The "buf" passed to method is assumed to be at least as big as the tiles: "getSize() * sizeof(double)"
Reimplemented from ossimImageData.
Definition at line 516 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getNumberOfBands(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), ossimNormalizedU8RemapTable::pixFromNorm(), and size.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 545 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getNumberOfBands(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), ossimNormalizedU8RemapTable::pixFromNorm(), and size.
|
virtual |
Will copy the normalized buffer to this tiles specified band. If band is out of range then nothing is done and returns.
Reimplemented from ossimImageData.
Definition at line 574 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), ossimNormalizedU8RemapTable::pixFromNorm(), and size.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 601 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), ossimNormalizedU8RemapTable::pixFromNorm(), and size.
|
virtual |
Copies entire tile to buf passed in. Data put in buf is normalized. The "buf" passed to method is assumed to be at least as big as: "getSize() * sizeof(double)"
Reimplemented from ossimImageData.
Definition at line 378 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getNumberOfBands(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), and size.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 414 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getNumberOfBands(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), and size.
|
virtual |
Will copy this tiles specified band number to the normalized buffer. if the band is out of range then nothing is done and returns.
Definition at line 450 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), and size.
|
virtual |
Definition at line 483 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimObject::getClassName(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), m_remapTable, ossimErrorCodes::OSSIM_ERROR, ossimSetError(), and size.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 62 of file ossimU8ImageData.cpp.
References ossimU8ImageData().
void ossimU8ImageData::fill | ( | ossim_uint32 | band, |
double | value | ||
) |
will fill the entire band with the value.
Definition at line 337 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), OSSIM_STATUS_UNKNOWN, and ossimDataObject::setDataObjectStatus().
void ossimU8ImageData::fill | ( | double | value | ) |
Definition at line 67 of file ossimU8ImageData.cpp.
References ossimImageData::fill().
|
inlinevirtual |
Reimplemented from ossimImageData.
Definition at line 170 of file ossimU8ImageData.h.
References m_remapTable.
|
virtual |
will go to the band and offset and compute the normalized float and return it back to the caller through the result argument.
Reimplemented from ossimImageData.
Definition at line 106 of file ossimU8ImageData.cpp.
References ossimDataObject::getDataObjectStatus(), ossimImageData::getUcharBuf(), ossimImageData::isValidBand(), m_remapTable, ossimNormalizedU8RemapTable::normFromPix(), and OSSIM_NULL.
bool ossimU8ImageData::isNull | ( | ossim_uint32 | offset | ) | const |
Definition at line 354 of file ossimU8ImageData.cpp.
References ossimImageData::getNumberOfBands(), ossimImageData::getUcharBuf(), and ossimImageData::m_nullPixelValue.
Referenced by computeAverageBandValue(), and computeMeanSquaredError().
|
virtual |
This will assign to this object a normalized value by unnormalizing to its native type.
Reimplemented from ossimImageData.
Definition at line 120 of file ossimU8ImageData.cpp.
References ossimDataObject::getDataObjectStatus(), ossimImageData::getNumberOfBands(), ossimImageData::getUcharBuf(), m_remapTable, OSSIM_NULL, and ossimNormalizedU8RemapTable::pixFromNorm().
void ossimU8ImageData::setNull | ( | ossim_uint32 | offset | ) |
Definition at line 369 of file ossimU8ImageData.cpp.
References ossimImageData::getNumberOfBands(), ossimImageData::getUcharBuf(), and ossimImageData::m_nullPixelValue.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 316 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimImageData::getUcharBuf(), ossimImageData::isWithin(), ossimRectilinearDataObject::m_numberOfDataComponents, ossimImageData::m_origin, ossimRectilinearDataObject::m_spatialExtents, ossimIpt::x, x, ossimIpt::y, and y.
|
virtual |
Will take the normalized input and convert it to this tile's data type. Example: if this tile is of type UCHAR and its input is of type NORALIZED_FLOAT it will unnormalize the data by doing:
minPix + normalizedInput*(maxPix-minPix)
on a per band basis.
Reimplemented from ossimImageData.
Definition at line 208 of file ossimU8ImageData.cpp.
References ossimImageData::getBuf(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), ossimRectilinearDataObject::m_numberOfDataComponents, m_remapTable, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, and size.
|
virtual |
Reimplemented from ossimImageData.
Definition at line 72 of file ossimU8ImageData.cpp.
References ossimDataObject::getDataObjectStatus(), ossimImageData::getNullPix(), ossimImageData::getNumberOfBands(), ossimImageData::getSize(), ossimImageData::getSizePerBand(), ossimImageData::getUcharBuf(), ossimRectilinearDataObject::m_dataBuffer, OSSIM_EMPTY, OSSIM_FULL, OSSIM_NULL, OSSIM_PARTIAL, and ossimDataObject::setDataObjectStatus().
|
staticprivate |
Definition at line 165 of file ossimU8ImageData.h.
Referenced by convertToNormalizedDouble(), convertToNormalizedFloat(), copyNormalizedBufferToTile(), copyTileToNormalizedBuffer(), getMinNormalizedPix(), getNormalizedFloat(), setNormalizedFloat(), and unnormalizeInput().