//******************************************************************* // Copyright (C) 2000 ImageLinks Inc. // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // // Description: A brief description of the contents of the file. // //************************************************************************* // $Id: ossimBrightnessMatch.h 23664 2015-12-14 14:17:27Z dburken $ #ifndef ossimBrightnessMatch_HEADER #define ossimBrightnessMatch_HEADER #include #include class ossimBrightnessMatch : public ossimImageSourceFilter { public: ossimBrightnessMatch(); virtual ossimRefPtr getTile(const ossimIrect& tileRect, ossim_uint32 resLevel=0); virtual void initialize(); /*---------------------- PROPERTY INTERFACE ---------------------------*/ virtual void setProperty(ossimRefPtr property); virtual ossimRefPtr getProperty(const ossimString& name)const; virtual void getPropertyNames(std::vector& propertyNames)const; /*--------------------- PROPERTY INTERFACE END ------------------------*/ virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0); virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0)const; protected: virtual ~ossimBrightnessMatch(); double theTargetBrightness; double theInputBrightness; ossimRefPtr theNormTile; ossimRefPtr theBrightnessContrastSource; ossimRefPtr runBrightnessMatch(); void computeInputBrightness(); TYPE_DATA }; #endif