/usr/include/ossim/imaging/ossimScalarRemapper.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | //*******************************************************************
// Copyright (C) 2001 ImageLinks Inc.
//
// License: See top level LICENSE.txt file.
//
// Author: David Burken
//
// Description:
//
// Contains class declartion for ossimScalarRemapper.
// This class is used to remap image data from one scalar type to another.
//
//*******************************************************************
// $Id: ossimScalarRemapper.h 15766 2009-10-20 12:37:09Z gpotts $
#ifndef ossimScalarRemapper_HEADER
#define ossimScalarRemapper_HEADER
#include <ossim/imaging/ossimImageSourceFilter.h>
class OSSIMDLLEXPORT ossimScalarRemapper : public ossimImageSourceFilter
{
public:
ossimScalarRemapper();
ossimScalarRemapper(ossimImageSource* inputSource,
ossimScalarType outputScalarType);
virtual ~ossimScalarRemapper();
virtual void initialize();
virtual ossimString getLongName() const;
virtual ossimString getShortName() const;
virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& tile_rect,
ossim_uint32 resLevel=0);
/**
* Returns the output pixel type of the tile source. This override the
* base class since it simply returns it's input scalar type which is
* not correct with this object.
*/
virtual ossimScalarType getOutputScalarType() const;
/**
* Returns the output pixel type of the tile source as a string.
*/
virtual ossimString getOutputScalarTypeString() const;
/**
* Sets the output scalar type.
*/
virtual void setOutputScalarType(ossimScalarType scalarType);
virtual void setOutputScalarType(ossimString scalarType);
virtual void setPreserveMagnitude(bool value);
/**
* Sets the current resolution level. Returns true on success, false
* on error.
*/
virtual double getNullPixelValue(ossim_uint32 band) const;
virtual double getMinPixelValue(ossim_uint32 band=0) const;
virtual double getMaxPixelValue(ossim_uint32 band=0) const;
/**
* Method to save the state of an object to a keyword list.
* Return true if ok or false on error.
*/
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=NULL)const;
/**
* Method to the load (recreate) the state of an object from a keyword
* list. Return true if ok or false on error.
*/
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=NULL);
/**
* Override base class so that a disableSource event does not
* reinitialize the object and enable itself.
*/
virtual void propertyEvent(ossimPropertyEvent& event);
virtual void refreshEvent(ossimRefreshEvent& event);
virtual void setProperty(ossimRefPtr<ossimProperty> property);
virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
protected:
/**
* Called on first getTile, will initialize all data needed.
*/
void allocate();
/**
* Deletes allocated memory. Used by both allocate and destructor.
*/
void destroy();
double* theNormBuf;
ossimRefPtr<ossimImageData> theTile;
ossimScalarType theOutputScalarType;
bool theByPassFlag;
bool thePreserveMagnitudeFlag;
TYPE_DATA
};
#endif /* #ifndef ossimScalarRemapper_HEADER */
|