//******************************************************************* // Copyright (C) 2002 ImageLinks Inc. // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Author: Kathy Minear // // Description: // // Gamma remapper. // //************************************************************************* // $Id: ossimGammaRemapper.h 23664 2015-12-14 14:17:27Z dburken $ #ifndef ossimGammaRemapper_HEADER #define ossimGammaRemapper_HEADER #include class ossimGammaRemapper : public ossimImageSourceFilter { public: ossimGammaRemapper(ossimObject* owner=NULL); ossimGammaRemapper(ossimImageSource* inputSource); ossimGammaRemapper(ossimObject* owner, ossimImageSource* inputSource); virtual ossimString getShortName()const; virtual void initialize(); virtual ossimRefPtr getTile(const ossimIrect& tile_rect, ossim_uint32 resLevel=0); /*! * 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=0); virtual ostream& print(ostream& os) const; friend ostream& operator<< (ostream& os, const ossimGammaRemapper& hr); void setMinMaxPixelValues(const vector& v_min, const vector& v_max); virtual void enableSource(); protected: virtual ~ossimGammaRemapper(); /*! * Method to set unset the enable flag. */ void verifyEnabled(); ossimRefPtr theTile; double* theBuffer; vector theMinPixelValue; vector theMaxPixelValue; vector theGamma; bool theUserDisabledFlag; TYPE_DATA }; #endif /* #ifndef ossimGammaRemapper_HEADER */