11 theAutoLoadInputHistogramFlag(false)
107 if(!property.
valid())
return;
110 if(name ==
"input_histogram_filename")
115 else if(name ==
"target_histogram_filename")
120 else if(name ==
"auto_load_input_histogram_flag")
134 if(name ==
"input_histogram_filename")
143 else if(name ==
"target_histogram_filename")
153 if(name ==
"auto_load_input_histogram_flag")
167 propertyNames.push_back(
"auto_load_input_histogram_flag");
168 propertyNames.push_back(
"input_histogram_filename");
169 propertyNames.push_back(
"target_histogram_filename");
175 const char* inputFilename = kwl.
find(prefix,
"input_histogram_filename");
176 const char* targetFilename = kwl.
find(prefix,
"target_histogram_filename");
177 const char* autoLoadInputFlag = kwl.
find(prefix,
"auto_load_input_histogram_flag");
179 if(autoLoadInputFlag)
206 const char* prefix)
const 211 "input_histogram_filename",
218 "input_histogram_filename",
223 "target_histogram_filename",
227 "auto_load_input_histogram_flag",
virtual void valueToString(ossimString &valueResult) const =0
virtual bool isSourceEnabled() const
virtual ossimRefPtr< ossimConnectableObject > disconnectMyInput(ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true)
Will disconnect the object at the given input index and generate a connection event.
ossimFilename theTargetHistogramFilename
virtual void setProperty(ossimRefPtr< ossimProperty > property)
virtual void connectInputEvent(ossimConnectionEvent &event)
ossimFilename theInputHistogramFilename
virtual void connectInputEvent(ossimConnectionEvent &event)
Represents serializable keyword/value map.
bool theAutoLoadInputHistogramFlag
const char * find(const char *key) const
virtual void setHistogram(ossimRefPtr< ossimMultiResLevelHistogram > histogram)
virtual void initialize()
RTTI_DEF1(ossimHistogramMatchFilter, "ossimHistogramMatchFilter", ossimImageSourceFilter)
virtual void setProperty(ossimRefPtr< ossimProperty > property)
virtual void disconnectInputEvent(ossimConnectionEvent &event)
virtual void disconnectInputEvent(ossimConnectionEvent &event)
virtual void initialize()
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Returns a property given the name.
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
void setTargetHistogram(const ossimFilename &targetHistogram)
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
bool toBool() const
String to numeric methods.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
ossimImageSource * theInputConnection
unsigned int ossim_uint32
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
void autoLoadInputHistogram()
Will search the input chain and get the histogram_filename property of the image handler.
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
class ossimHistogramMatchFilter
ossimRefPtr< ossimHistogramEqualization > theTargetHistogramEqualizer
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual void initialize()
Initializes the input and target equalizer filters.
virtual void setInverseFlag(bool inverseFlag)
T * getObjectAs(ossim_uint32 idx=0)
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
void setIoType(ossimFilenamePropertyIoType ioType)
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimRefPtr< ossimHistogramEqualization > theInputHistogramEqualizer
virtual void accept(ossimVisitor &visitor)
We will add a visitor interface for all connectable objects.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Returns a list of proeprties.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=NULL) const
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
Calls the owned equalizers to create a match composite image.
ossimHistogramMatchFilter()
void setInputHistogram(const ossimFilename &inputHistogram)
void setCacheRefreshBit()
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)