OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ossimLocalCorrelationFusion Class Reference

This implements a Local correlation fusion based on the paper: More...

#include <ossimLocalCorrelationFusion.h>

Inheritance diagram for ossimLocalCorrelationFusion:
ossimFusionCombiner ossimAdjustableParameterInterface ossimImageCombiner ossimImageSource ossimConnectableObjectListener ossimSource ossimListener ossimConnectableObject ossimErrorStatusInterface ossimObject ossimListenerManager ossimPropertyInterface ossimReferenced

Public Member Functions

 ossimLocalCorrelationFusion ()
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIrect &rect, ossim_uint32 resLevel=0)
 
virtual void initialize ()
 
virtual ossimObjectgetBaseObject ()
 
virtual const ossimObjectgetBaseObject () const
 
virtual void initAdjustableParameters ()
 
virtual void adjustableParametersChanged ()
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 Method to save the state of an object to a keyword list. More...
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 Method to the load (recreate) the state of an object from a keyword list. More...
 
- Public Member Functions inherited from ossimFusionCombiner
 ossimFusionCombiner ()
 
 ossimFusionCombiner (ossimObject *owner)
 
virtual ossimIrect getBoundingRect (ossim_uint32 resLevel=0) const
 This will return the bounding rect of the source. More...
 
bool canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const
 required to be overriden by derived classes More...
 
ossimScalarType getOutputScalarType () const
 This will be used to query the output pixel type of the tile source. More...
 
- Public Member Functions inherited from ossimImageCombiner
 ossimImageCombiner ()
 
 ossimImageCombiner (ossimObject *owner, int numberOfInputs, int numberOfOutputs, bool inputListIsFixedFlag, bool outputListIsFixedFlag)
 
 ossimImageCombiner (ossimConnectableObject::ConnectableObjectList &inputSources)
 
virtual void updateRects ()
 This will go through and precompute the bounding rects of each input image. More...
 
virtual ossim_uint32 getNumberOfInputBands () const
 Returns the number of bands available from the input. More...
 
virtual ossim_uint32 getTileWidth () const
 Returns the default processing tile width. More...
 
virtual ossim_uint32 getTileHeight () const
 Returns the default processing tile height. More...
 
virtual double getNullPixelValue (ossim_uint32 band=0) const
 Each band has a null pixel associated with it. More...
 
virtual double getMinPixelValue (ossim_uint32 band=0) const
 Returns the min pixel of the band. More...
 
virtual double getMaxPixelValue (ossim_uint32 band=0) const
 Returns the max pixel of the band. More...
 
virtual ossim_uint32 getNumberOfOverlappingImages (const ossimIrect &rect, ossim_uint32 resLevel=0) const
 Used to retrieve the number of overlapping images withint the given rect. More...
 
virtual void getOverlappingImages (std::vector< ossim_uint32 > &result, const ossimIrect &rect, ossim_uint32 resLevel=0) const
 Used to populate the result with the index of the overlapping images. More...
 
virtual ossimRefPtr< ossimImageDatagetNextTile (ossim_uint32 &returnedIdx, const ossim_uint32 startIdx, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual ossimRefPtr< ossimImageDatagetNextTile (ossim_uint32 &returnedIdx, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual bool getNextTile (ossim_uint32 &returnedIdx, const ossim_uint32 startIdx, ossimImageData *tile, ossim_uint32 resLevel=0)
 
virtual ossimRefPtr< ossimImageDatagetNextNormTile (ossim_uint32 &returnedIdx, const ossim_uint32 index, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual ossimRefPtr< ossimImageDatagetNextNormTile (ossim_uint32 &returnedIdx, const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual void connectInputEvent (ossimConnectionEvent &event)
 
virtual void disconnectInputEvent (ossimConnectionEvent &event)
 
virtual void propertyEvent (ossimPropertyEvent &event)
 
virtual void refreshEvent (ossimRefreshEvent &event)
 
virtual bool hasDifferentInputs () const
 
- Public Member Functions inherited from ossimImageSource
 ossimImageSource (ossimObject *owner=0)
 
 ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimImageSource ()
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIpt &origin, ossim_uint32 resLevel=0)
 
virtual bool getTile (ossimImageData *result, ossim_uint32 resLevel=0)
 Method to get a tile. More...
 
virtual ossimObjectgetObject ()
 For RTTI support. More...
 
virtual const ossimObjectgetObject () const
 For RTTI support. More...
 
virtual void getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const
 Will return the decimation factor for the given resolution level. More...
 
virtual void getDecimationFactors (std::vector< ossimDpt > &decimations) const
 Will return an array of all decimations for each resolution level. More...
 
virtual ossim_uint32 getNumberOfDecimationLevels () const
 Will return the number of resolution levels. More...
 
virtual ossim_uint32 getNumberOfOutputBands () const
 Returns the number of bands in a tile returned from this TileSource. More...
 
virtual void getOutputBandList (std::vector< ossim_uint32 > &bandList) const
 Initializes bandList. More...
 
virtual void getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const
 Gets the bounding rectangle of the source. More...
 
virtual void getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
 ordering specifies how the vertices should be arranged. More...
 
virtual ossimRefPtr< ossimImageGeometrygetImageGeometry ()
 Returns the image geometry object associated with this tile source or NULL if not defined. More...
 
virtual void setImageGeometry (const ossimImageGeometry *geom)
 Default implementation sets geometry of the first input to the geometry specified. More...
 
virtual void saveImageGeometry () const
 Default method to call input's saveImageGeometry. More...
 
virtual void saveImageGeometry (const ossimFilename &geometry_file) const
 Default method to call input's saveImageGeometry. More...
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
virtual bool isIndexedData () const
 
- Public Member Functions inherited from ossimSource
 ossimSource (ossimObject *owner=0)
 
 ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimSource ()
 
virtual bool isSourceEnabled () const
 
virtual void enableSource ()
 
virtual void disableSource ()
 
virtual bool getEnableFlag () const
 
virtual void setEnableFlag (bool flag)
 
virtual bool isInitialized () const
 
virtual void setInitializedFlag (bool flag)
 
virtual std::ostream & print (std::ostream &out) const
 Outputs theErrorStatus as an ossimErrorCode and an ossimString. More...
 
- Public Member Functions inherited from ossimConnectableObject
 ossimConnectableObject (ossimObject *owner=0)
 Base constructor of this object. More...
 
 ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimConnectableObject ()
 
void setId (const ossimId &id)
 All connectable objects will have id's. More...
 
const ossimIdgetId () const
 Will allow us to get this object's id. More...
 
const ossimObjectgetOwner () const
 Fetches the current owner, most likely a container but not limited to one. More...
 
virtual void changeOwner (ossimObject *owner)
 Permits changing the object's owner. More...
 
virtual void setDescription (const ossimString &description)
 
virtual ossimString getDescription () const
 
virtual bool isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const
 will check the direction specified to see if all slots are full. More...
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className))
 
virtual ossim_int32 findInputIndex (const ossimConnectableObject *object)
 Return a valid index of the input list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findInputIndex (const ossimId &id)
 Return a valid index of the input list if the passed id is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimConnectableObject *object)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimId &id)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 getMyInputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual ossim_int32 getMyOutputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual bool canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const
 default implementation is to allow anyone to connect to us. More...
 
virtual void disconnect (ossimConnectableObject *object=0)
 Will disconnect the object passed in. More...
 
virtual void disconnect (const ossimId &id)
 Will disconnect the object passed in. More...
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given input index and generate a connection event. More...
 
virtual void disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More...
 
virtual void disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given output index and generate a connection event. More...
 
virtual void disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the output object. More...
 
virtual void disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual void disconnectAllInputs ()
 Will disconnect all of the input objects. More...
 
virtual void disconnectAllOutputs ()
 Will disconnect all of the output objects. More...
 
virtual ossim_int32 connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will try to connect this objects input to the passed in object. More...
 
virtual ossim_int32 connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will connect the specified input to the passed in object. More...
 
virtual bool connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true)
 
virtual ossim_int32 connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true)
 Will try to connect this objects output to the passed in object. More...
 
virtual bool connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true)
 
virtual bool connectInputList (ConnectableObjectList &inputList)
 Will disconnect itself from all inputs and reset to the passed in input list. More...
 
virtual bool connectOutputList (ConnectableObjectList &outputList)
 Will disconnect itself from all outputs and reset to the passed in output list. More...
 
virtual ossim_uint32 getNumberOfInputs () const
 Returns the number of input objects. More...
 
virtual ossim_uint32 getNumberOfOutputs () const
 Return the number of output objects. More...
 
ossimConnectableObjectgetInput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetInput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
ossimConnectableObjectgetOutput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetOutput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
virtual void setNumberOfInputs (ossim_int32 numberOfInputs)
 Will set the number of inputs. More...
 
virtual bool getInputListIsFixedFlag () const
 
virtual bool getOutputListIsFixedFlag () const
 
virtual void setNumberOfOutputs (ossim_int32 numberOfInputs)
 Will set the number of outputs. More...
 
const ConnectableObjectListgetInputList () const
 
const ConnectableObjectListgetOutputList () const
 
ConnectableObjectListgetInputList ()
 
ConnectableObjectListgetOutputList ()
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true))
 
virtual void propagateEventToOutputs (ossimEvent &event)
 
virtual void propagateEventToInputs (ossimEvent &event)
 
virtual void setProperty (const ossimString &name, const ossimString &value)
 
virtual ossim_uint32 saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const
 Save the state of all inputs to a keyword list. More...
 
virtual bool fillContainer (ossimConnectableContainer &container)
 Inserts this object and all of its children and inputs into the container provided. More...
 
bool moveInputUp (const ossimId &id)
 Moves the input connection matching id up one in the connection list. More...
 
bool moveInputDown (const ossimId &id)
 Moves the input connection matching id down one in the connection list. More...
 
bool moveInputToTop (const ossimId &id)
 Moves the input connection matching id to the top of the connection list. More...
 
bool moveInputToBottom (const ossimId &id)
 Moves the input connection matching id to the bottom of the connection list. More...
 
virtual void accept (ossimVisitor &visitor)
 We will add a visitor interface for all connectable objects. More...
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () 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
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (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
 
- Public Member Functions inherited from ossimListenerManager
 ossimListenerManager ()
 
virtual ~ossimListenerManager ()
 
virtual void fireEvent (ossimEvent &event)
 
virtual bool addListener (ossimListener *listener)
 
virtual bool removeListener (ossimListener *listener)
 
virtual bool findListener (ossimListener *listener)
 
- Public Member Functions inherited from ossimPropertyInterface
 ossimPropertyInterface ()
 
virtual ~ossimPropertyInterface ()
 
virtual ossimString getPropertyValueAsString (const ossimString &name) const
 
void getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const
 
void setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList)
 
- Public Member Functions inherited from ossimErrorStatusInterface
 ossimErrorStatusInterface ()
 
virtual ~ossimErrorStatusInterface ()
 
virtual ossimErrorCode getErrorStatus () const
 
virtual ossimString getErrorStatusString () const
 
virtual void setErrorStatus (ossimErrorCode error_status) const
 
virtual void setErrorStatus () const
 
virtual void clearErrorStatus () const
 
bool hasError () const
 
- Public Member Functions inherited from ossimConnectableObjectListener
 ossimConnectableObjectListener ()
 
virtual ~ossimConnectableObjectListener ()
 
virtual void processEvent (ossimEvent &event)
 ProcessEvent. More...
 
virtual void objectDestructingEvent (ossimObjectDestructingEvent &)
 
virtual void connectionEvent (ossimConnectionEvent &)
 
virtual void disconnectOutputEvent (ossimConnectionEvent &)
 
virtual void connectOutputEvent (ossimConnectionEvent &)
 
virtual void addObjectEvent (ossimContainerEvent &)
 
virtual void removeObjectEvent (ossimContainerEvent &)
 
virtual void containerEvent (ossimContainerEvent &)
 
- Public Member Functions inherited from ossimListener
 ossimListener ()
 
virtual ~ossimListener ()
 
void enableListener ()
 
void disableListener ()
 
void setListenerEnableFlag (bool flag)
 
bool isListenerEnabled () const
 
bool getListenerEnableFlag () const
 
- Public Member Functions inherited from ossimAdjustableParameterInterface
 ossimAdjustableParameterInterface ()
 
 ossimAdjustableParameterInterface (const ossimAdjustableParameterInterface &rhs)
 
virtual ~ossimAdjustableParameterInterface ()
 
void newAdjustment (ossim_uint32 numberOfParameters=0)
 
void setAdjustmentDescription (const ossimString &description)
 
ossimString getAdjustmentDescription () const
 
ossimString getAdjustmentDescription (ossim_uint32 adjustmentIdx) const
 Returns adjustmentDescription of specific adjustmentInfo. More...
 
void setCurrentAdjustment (ossim_uint32 adjustmentIndex, bool notify=false)
 
bool setCurrentAdjustment (const ossimString &description, bool notify=false)
 Sets the current adjustment to the adjustment with a matching description. More...
 
void eraseAdjustment (bool notify)
 
void eraseAdjustment (ossim_uint32 idx, bool notify)
 
void resetAdjustableParameters (bool notify=false)
 
void copyAdjustment (ossim_uint32 idx, bool notify)
 
void copyAdjustment (bool notify=false)
 
void keepAdjustment (ossim_uint32 idx, bool createCopy)
 
virtual void keepAdjustment (bool createCopy=true)
 
const ossimAdjustableParameterInterfaceoperator= (const ossimAdjustableParameterInterface &rhs)
 
void removeAllAdjustments ()
 
ossim_uint32 getNumberOfAdjustableParameters () const
 
double getAdjustableParameter (ossim_uint32 idx) const
 
virtual void setAdjustableParameter (ossim_uint32 idx, double value, bool notify=false)
 
virtual void setAdjustableParameter (ossim_uint32 idx, double value, double sigma, bool notify=false)
 
double getParameterSigma (ossim_uint32 idx) const
 
void setParameterSigma (ossim_uint32 idx, double value, bool notify=false)
 
ossimUnitType getParameterUnit (ossim_uint32 idx) const
 
void setParameterUnit (ossim_uint32 idx, ossimUnitType unit)
 
void setParameterUnit (ossim_uint32 idx, const ossimString &unit)
 
void setParameterCenter (ossim_uint32 idx, double center, bool notify=false)
 
double getParameterCenter (ossim_uint32 idx) const
 
double computeParameterOffset (ossim_uint32 idx) const
 
void setParameterOffset (ossim_uint32 idx, ossim_float64 value, bool notify=false)
 
ossimString getParameterDescription (ossim_uint32 idx) const
 
void setParameterDescription (ossim_uint32 idx, const ossimString &descrption)
 
ossim_int32 findParameterIdxGivenDescription (ossim_uint32 adjustmentIdx, const ossimString &name) const
 
ossim_int32 findParameterIdxContainingDescription (ossim_uint32 adjustmentIdx, const ossimString &name) const
 
bool isParameterLocked (ossim_uint32 idx) const
 
void setParameterLockFlag (ossim_uint32 idxParam, bool flag)
 
bool getParameterLockFlag (ossim_uint32 idx) const
 
void lockAllParametersCurrentAdjustment ()
 
void unlockAllParametersCurrentAdjustment ()
 
void lockAllParameters (ossim_uint32 idxAdjustment)
 
void unlockAllParameters (ossim_uint32 idxAdjustment)
 
void resizeAdjustableParameterArray (ossim_uint32 numberOfParameters)
 
void setAdjustment (const ossimAdjustmentInfo &adj, bool notify=false)
 
void setAdjustment (ossim_uint32 idx, const ossimAdjustmentInfo &adj, bool notify=false)
 
void addAdjustment (const ossimAdjustmentInfo &adj, bool notify)
 
void getAdjustment (ossimAdjustmentInfo &adj) const
 
void getAdjustment (ossim_uint32 idx, ossimAdjustmentInfo &adj) const
 
ossim_uint32 getNumberOfAdjustments () const
 
ossim_uint32 getCurrentAdjustmentIdx () const
 
void setDirtyFlag (bool flag=true)
 
void setAllDirtyFlag (bool flag=true)
 
bool hasDirtyAdjustments () const
 
virtual void saveCurrentAdjustmentOnly (ossimKeywordlist &kwl, const ossimString &prefix=ossimString(""))
 Saves the current active adjustment to the KWL file. More...
 
bool saveAdjustments (ossimKeywordlist &kwl, const ossimString &prefix=ossimString("")) const
 Save all adjustments to the KWL file. More...
 
bool loadAdjustments (const ossimKeywordlist &kwl, const ossimString &prefix=ossimString(""))
 
virtual void updateModel ()
 Provides the derived adjustable class an opportunity to update its state after a param change. More...
 
std::ostream & print (std::ostream &out) const
 Dumps the currently active adjustment to ostream. More...
 

Protected Member Functions

virtual ~ossimLocalCorrelationFusion ()
 
void setFilters ()
 
bool computeRegression (ossim_float64 &slopeResult, const ossimIpt &origin, ossimRefPtr< ossimImageData > panData, ossimRefPtr< ossimImageData > colorData, ossim_uint32 colorBandIdx)
 
- Protected Member Functions inherited from ossimFusionCombiner
virtual ~ossimFusionCombiner ()
 
ossimRefPtr< ossimImageDatagetNormIntensity (const ossimIrect &rect, ossim_uint32 resLevel)
 
ossimRefPtr< ossimImageDatagetNormTile (const ossimIrect &rect, ossim_uint32 resLevel)
 
- Protected Member Functions inherited from ossimImageCombiner
virtual ~ossimImageCombiner ()
 
void precomputeBounds () const
 
- Protected Member Functions inherited from ossimImageSource
 ossimImageSource (const ossimImageSource &rhs)
 
const ossimImageSourceoperator= (const ossimImageSource &)
 
- Protected Member Functions inherited from ossimSource
 ossimSource (const ossimSource &rhs)
 
const ossimSourceoperator= (const ossimSource &rhs)
 
- Protected Member Functions inherited from ossimConnectableObject
ossimConnectableObjectfindObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Protected Member Functions inherited from ossimListenerManager
 ossimListenerManager (const ossimListenerManager &rhs)
 
- Protected Member Functions inherited from ossimAdjustableParameterInterface
bool paramChanged (ossim_uint32 param_idx) const
 Returns true if specified parameter has been modified since last setAllChangeFlag(false) call. More...
 
void setAllChangeFlags (bool areChanged)
 Sets all the change flags to the boolean indicated to indicate parameters are changed (TRUE) or not (FALSE). More...
 
void initChangeFlags ()
 Initializes the change flags to TRUE. More...
 

Protected Attributes

ossim_float64 theBlurrKernelWidth
 
ossim_uint32 theHighPassKernelWidth
 
ossim_uint32 theRegressionWidth
 
ossimRefPtr< ossimImageGaussianFiltertheLowPassFilter
 
ossimRefPtr< ossimConvolutionSourcetheHighPassFilter
 
ossimRefPtr< ossimImageDatatheNormLowPassTile
 
ossimRefPtr< ossimImageDatatheNormHighPassTile
 
ossimRefPtr< ossimImageDatatheNormColorData
 
NEWMAT::Matrix theHighPassMatrix
 
- Protected Attributes inherited from ossimFusionCombiner
ossimRefPtr< ossimImageDatatheTile
 
ossimRefPtr< ossimImageDatatheNormTile
 
ossimRefPtr< ossimImageDatatheNormIntensity
 
ossimImageSourcetheInputConnection
 
ossimImageSourcetheIntensityConnection
 
- Protected Attributes inherited from ossimImageCombiner
ossim_uint32 theLargestNumberOfInputBands
 
ossim_uint32 theInputToPassThrough
 
bool theHasDifferentInputs
 
ossimRefPtr< ossimImageDatatheNormTile
 
std::vector< ossimIrecttheFullResBounds
 
bool theComputeFullResBoundsFlag
 
ossim_uint32 theCurrentIndex
 
- Protected Attributes inherited from ossimSource
bool theEnableFlag
 
bool theInitializedFlag
 
- Protected Attributes inherited from ossimConnectableObject
ossimId theId
 
ossimString theDescription
 
ossimObjecttheOwner
 
bool theInputListIsFixedFlag
 Indicates whether the theInputObjectList is fixed. More...
 
bool theOutputListIsFixedFlag
 Indicates whether the theOutputObjectList is fixed. More...
 
ConnectableObjectList theInputObjectList
 Holds a list of input objects. More...
 
ConnectableObjectList theOutputObjectList
 Holds a list of output objects. More...
 
- Protected Attributes inherited from ossimListenerManager
std::list< ossimListener * > theListenerList
 
bool theEnabledFlag
 
std::list< ossimListener * > theDelayedAdd
 
std::list< ossimListener * > theDelayedRemove
 
bool theFireEventFlag
 
- Protected Attributes inherited from ossimErrorStatusInterface
ossimErrorCode theErrorStatus
 
- Protected Attributes inherited from ossimListener
bool theListenerEnableFlag
 

Additional Inherited Members

- Public Types inherited from ossimConnectableObject
enum  ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 }
 
typedef std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
 

Detailed Description

This implements a Local correlation fusion based on the paper:

"A Local Correlation Approach For the Fusion of Remote Sensing Data With Different Spatial Resolution In Forestry Applications" by J. Hill, C. Diemer, O. Stover, and Th. Udelhoven Published in: International Archives of Photogrammetry and Remote Sensing, Vol 32, Part 7-4-3 W6, Valladolid, Spain, 3-4 June, 1999

A new band is computed by the formula:

ColorHigh = ColorLow + RegressionSlope*(PanHigh-PanLow);

Adjustable paraemters have been added to clamp the regression slope and attenuate colorLowOffset value and blurring the Pan.

ColorHigh = ColorLow + Clamp(RegressionSlope)*Attenuator(PanHigh-PanLow);

The regression coefficient is coputed for each color band.

Definition at line 38 of file ossimLocalCorrelationFusion.h.

Constructor & Destructor Documentation

◆ ossimLocalCorrelationFusion()

ossimLocalCorrelationFusion::ossimLocalCorrelationFusion ( )

Definition at line 27 of file ossimLocalCorrelationFusion.cpp.

References initAdjustableParameters(), setFilters(), theHighPassFilter, and theLowPassFilter.

28  :theBlurrKernelWidth(1.5),
31 {
34 
35  setFilters();
36 
38 }
class for symmetric Gaussian filtering implemented as two separable horizontal/vertical gaussian filt...
ossimRefPtr< ossimConvolutionSource > theHighPassFilter
ossimRefPtr< ossimImageGaussianFilter > theLowPassFilter

◆ ~ossimLocalCorrelationFusion()

ossimLocalCorrelationFusion::~ossimLocalCorrelationFusion ( )
protectedvirtual

Definition at line 40 of file ossimLocalCorrelationFusion.cpp.

41 {
42 }

Member Function Documentation

◆ adjustableParametersChanged()

void ossimLocalCorrelationFusion::adjustableParametersChanged ( )
virtual

Reimplemented from ossimAdjustableParameterInterface.

Definition at line 408 of file ossimLocalCorrelationFusion.cpp.

References ossimAdjustableParameterInterface::computeParameterOffset(), and theBlurrKernelWidth.

Referenced by loadState().

409 {
410 // std::cout << "Parameter offset = " << computeParameterOffset(2) << std::endl;
411  theBlurrKernelWidth = (ossim_uint32)(ossim::round<int>(computeParameterOffset(PAN_BLURR_WIDTH_OFFSET)));
412 }
unsigned int ossim_uint32

◆ computeRegression()

bool ossimLocalCorrelationFusion::computeRegression ( ossim_float64 slopeResult,
const ossimIpt origin,
ossimRefPtr< ossimImageData panData,
ossimRefPtr< ossimImageData colorData,
ossim_uint32  colorBandIdx 
)
protected

Definition at line 266 of file ossimLocalCorrelationFusion.cpp.

References ossim2dLinearRegression::addPoint(), ossimImageData::getBuf(), ossim2dLinearRegression::getEquation(), ossimImageData::getImageRectangle(), ossimImageData::getNullPix(), ossim2dLinearRegression::solve(), theRegressionWidth, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimIrect::width(), ossimIpt::x, x, ossimIpt::y, and y.

271 {
272  bool result = false;
273  slopeResult = 0.0;
274  if(panData.valid()&&colorData.valid())
275  {
277  ossimIrect rect = panData->getImageRectangle();
278  const ossim_float32* colorDataPtr = (const ossim_float32*)colorData->getBuf(colorBandIdx);
279  const ossim_float32* colorDataPtr2 = (const ossim_float32*)colorData->getBuf(colorBandIdx);
280 
281 // const ossim_float32* colorDataPtrBands[3]={0};
282 
283 // if(colorData->getNumberOfBands() <2)
284 // {
285 // colorDataPtrBands[0] = (ossim_float32*)colorData->getBuf(0);
286 // }
287 // else if(colorData->getNumberOfBands() <3)
288 // {
289 // colorDataPtrBands[0] = (ossim_float32*)colorData->getBuf(0);
290 // colorDataPtrBands[1] = (ossim_float32*)colorData->getBuf(1);
291 // }
292 // else
293 // {
294 // colorDataPtrBands[0] = (ossim_float32*)colorData->getBuf(0);
295 // colorDataPtrBands[1] = (ossim_float32*)colorData->getBuf(1);
296 // colorDataPtrBands[2] = (ossim_float32*)colorData->getBuf(2);
297 // }
298  const ossim_float32* panDataPtr = (const ossim_float32*)panData->getBuf();
299  const ossim_float32* panDataPtr2 = (const ossim_float32*)panData->getBuf();
300 // if(!panDataPtr || !colorDataPtrBands[0]) return result;
301  if(!panDataPtr || !colorDataPtr) return result;
302 
303  ossim_float64 panNp = panData->getNullPix(0);
304  ossim_float64 colorNp = colorData->getNullPix(0);
305  ossim_int32 w = (ossim_int32)rect.width();
306  ossim_int32 offset = (ossim_int32)( ((origin.y-rect.ul().y) - regW2)*w +
307  ((origin.x-rect.ul().x) - regW2));
308 
309  ossim_uint32 y = 0;
310  ossim_uint32 x = 0;
311  ossim_uint32 idx = 0;
312  ossim2dLinearRegression regression;
313  ossim_uint32 offsetColorBand;
314 
315  for(y = 0; y < theRegressionWidth; ++y)
316  {
317  offsetColorBand = (offset + y*w);
318  panDataPtr = panDataPtr2 + offsetColorBand;
319  colorDataPtr = colorDataPtr2 + offsetColorBand;
320  for(x = 0; x < theRegressionWidth; ++x)
321  {
322 // if((*panDataPtr != panNp)&&
323 // (colorDataPtrBands[0][offsetColorBand] != colorNp)&&
324 // (colorDataPtrBands[1][offsetColorBand] != colorNp)&&
325 // (colorDataPtrBands[2][offsetColorBand] != colorNp))
326 // {
327  if((*panDataPtr != panNp)&&
328  (*colorDataPtr != colorNp))
329  {
330 // ossimNormRgbVector rgbV(colorDataPtrBands[0][offsetColorBand],
331 // colorDataPtrBands[1][offsetColorBand],
332 // colorDataPtrBands[2][offsetColorBand]);
333 // ossimHsiVector hsi(rgbV);
334 
335  regression.addPoint(ossimDpt(*panDataPtr, *colorDataPtr));
336 // regression.addPoint(ossimDpt(*panDataPtr, hsi.getI()));
337  ++idx;
338  }
339  ++panDataPtr;
340 // ++offsetColorBand;
341  ++colorDataPtr;
342  }
343  }
344  if(idx > 2)
345  {
346  double slope, intercept;
347  result = true;
348  regression.solve();
349  regression.getEquation(slope,
350  intercept);
351 
352  slopeResult = slope;
353  }
354  }
355 
356  return result;
357 }
ossim_uint32 x
ossim_uint32 y
bool valid() const
Definition: ossimRefPtr.h:75
float ossim_float32
const ossimIpt & ul() const
Definition: ossimIrect.h:274
double ossim_float64
void getEquation(double &slope, double &intercept)
unsigned int ossim_uint32
virtual const ossim_float64 * getNullPix() const
virtual ossimIrect getImageRectangle() const
ossim_uint32 width() const
Definition: ossimIrect.h:500
ossim_int32 y
Definition: ossimIpt.h:142
virtual const void * getBuf() const
ossim_int32 x
Definition: ossimIpt.h:141
void addPoint(const ossimDpt &pt)
int ossim_int32

◆ getBaseObject() [1/2]

virtual ossimObject* ossimLocalCorrelationFusion::getBaseObject ( )
inlinevirtual

Implements ossimAdjustableParameterInterface.

Definition at line 47 of file ossimLocalCorrelationFusion.h.

48  {
49  return this;
50  }

◆ getBaseObject() [2/2]

virtual const ossimObject* ossimLocalCorrelationFusion::getBaseObject ( ) const
inlinevirtual

Implements ossimAdjustableParameterInterface.

Definition at line 51 of file ossimLocalCorrelationFusion.h.

52  {
53  return this;
54  }

◆ getTile()

ossimRefPtr< ossimImageData > ossimLocalCorrelationFusion::getTile ( const ossimIrect rect,
ossim_uint32  resLevel = 0 
)
virtual
Returns
the requested region of interest

Reimplemented from ossimImageSource.

Definition at line 44 of file ossimLocalCorrelationFusion.cpp.

References ossimAdjustableParameterInterface::computeParameterOffset(), ossimImageData::copyTileToNormalizedBuffer(), ossimImageData::dup(), ossimRefPtr< T >::get(), ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageData::getHeight(), ossimConnectableObject::getInput(), ossimFusionCombiner::getNormTile(), ossimImageData::getNumberOfBands(), ossimImageSource::getTile(), ossimImageGaussianFilter::getTile(), ossimConvolutionSource::getTile(), ossimImageData::getWidth(), initialize(), ossimImageData::initialize(), ossimImageData::loadTile(), ossimIrect::lr(), ossimImageData::makeBlank(), OSSIM_EMPTY, OSSIM_NORMALIZED_FLOAT, ossimImageData::setImageRectangle(), theHighPassFilter, ossimFusionCombiner::theInputConnection, ossimFusionCombiner::theIntensityConnection, theLowPassFilter, theNormHighPassTile, theNormLowPassTile, theRegressionWidth, ossimFusionCombiner::theTile, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimImageData::validate(), ossimIpt::x, x, ossimIpt::y, and y.

46 {
48  {
50  }
51 
53  {
54  return theInputConnection->getTile(rect, resLevel);
55  }
56 
57  ossim_int32 regressionW2 = (ossim_int32)ceil(theRegressionWidth/2.0);
58 
59  ossimIrect expandedRegressionRect(rect.ul().x - regressionW2,
60  rect.ul().y - regressionW2,
61  rect.lr().x + regressionW2,
62  rect.lr().y + regressionW2);
63 
65  {
68  1,
69  expandedRegressionRect.width(),
70  expandedRegressionRect.height());
73  1,
74  expandedRegressionRect.width(),
75  expandedRegressionRect.height());
80  }
81 
82  theNormLowPassTile->setImageRectangle(expandedRegressionRect);
83  theNormHighPassTile->setImageRectangle(expandedRegressionRect);
86 
88  {
89  initialize();
90  }
91 
92  ossimRefPtr<ossimImageData> lowTile = theLowPassFilter->getTile(expandedRegressionRect, resLevel);
93  ossimRefPtr<ossimImageData> highTile = theHighPassFilter->getTile(expandedRegressionRect, resLevel);
94 // ossimRefPtr<ossimImageData> highTile = getNormIntensity(expandedRegressionRect, resLevel);
95  ossimIpt ul = rect.ul();
96  ossimIpt origin;
97 
98  // if we don't have valid low and high pass then return the input color tile
99  // in its original format
100  //
101  if(!lowTile.valid()||!highTile.valid())
102  {
103  return theInputConnection->getTile(rect, resLevel);
104  }
105 
106  if((lowTile->getDataObjectStatus() == OSSIM_EMPTY)||
107  (!lowTile->getBuf()) ||
108  (highTile->getDataObjectStatus() == OSSIM_EMPTY)||
109  (!highTile->getBuf()))
110  {
111  return theInputConnection->getTile(rect, resLevel);
112  }
113 
114  ossimRefPtr<ossimImageData> normColorData = getNormTile(expandedRegressionRect, resLevel);
115 
116  ossim_uint32 y = 0;
117  ossim_uint32 x = 0;
120 
121  theTile->makeBlank();
122  theTile->setImageRectangle(rect);
123 
124  if(!normColorData.valid())
125  {
126  return 0;
127 // return theTile;
128  }
129 
130  if((normColorData->getDataObjectStatus() == OSSIM_EMPTY)||
131  !normColorData->getBuf())
132  {
133  return theTile;
134  }
135  ossimRefPtr<ossimImageData> normColorOutputData = (ossimImageData*)normColorData->dup();
136  normColorOutputData->setImageRectangle(rect);
137  normColorOutputData->loadTile(normColorData.get());
138 
139  ossim_float64 slopeResult = 0.0;
140  ossim_uint32 idx = 0;
141  std::vector<ossim_float32*> bands(normColorData->getNumberOfBands());
142 
144 
149  lowPan->setImageRectangle(rect);
150  lowPan->loadTile(theNormLowPassTile.get());
152  highPan->setImageRectangle(rect);
153  highPan->loadTile(theNormHighPassTile.get());
154 
155  ossim_float32* panHigh = (ossim_float32*)highPan->getBuf();
156  ossim_float32* panLow = (ossim_float32*)lowPan->getBuf();
157  for(idx = 0; idx < bands.size(); ++idx)
158  {
159  bands[idx] = (ossim_float32*)normColorOutputData->getBuf(idx);
160  }
161  double panAttenuator = computeParameterOffset(REGRESSION_COEFFICIENT_ATTENUATOR_OFFSET);
162  double delta = 0.0;
163  ossim_uint32 bandsSize = (ossim_uint32)bands.size();
164  ossim_float64 slopeClamp = computeParameterOffset(REGRESSION_COEFFICIENT_CLAMP_OFFSET);
165  ossim_float64 minSlope = -slopeClamp;
166  ossim_float64 maxSlope = slopeClamp;
167  for(y = 0; y < h; ++y)
168  {
169  origin.y = ul.y + y;
170  for(x = 0; x < w; ++x)
171  {
172  origin.x = ul.x + x;
173 
174 // if(computeRegression(slopeResult,
175 // origin,
176 // theNormLowPassTile,
177 // normColorData,
178 // 0))
179 // {
180 // delta = panAttenuator*slopeResult*(*panHigh - *panLow);
181 
182  for(idx = 0; idx < bandsSize; ++idx)
183  {
184  if(*bands[idx] != 0.0) // if band is not null
185  {
186  if(computeRegression(slopeResult,
187  origin,
189  normColorData,
190  idx))
191  {
192  if(slopeResult < minSlope) slopeResult = minSlope;
193  if(slopeResult > maxSlope) slopeResult = maxSlope;
194  delta = panAttenuator*slopeResult*(*panHigh - *panLow);
195  ossim_float32 normMinPix = (ossim_float32)normColorOutputData->getMinPix(idx);
196  *bands[idx] += delta;
197  if(*bands[idx] > 1.0) *bands[idx] = 1.0;
198  if(*bands[idx] < normMinPix) *bands[idx] = normMinPix;
199  }
200  }
201  ++bands[idx];
202  }
203  ++panHigh;
204  ++panLow;
205  }
206  }
207 
208  theTile->copyNormalizedBufferToTile((ossim_float32*)normColorOutputData->getBuf());
209  theTile->validate();
210 
211  return theTile;
212 }
virtual ossim_uint32 getWidth() const
ossim_uint32 x
ossimRefPtr< ossimImageData > theNormLowPassTile
virtual ossim_uint32 getNumberOfBands() const
ossimRefPtr< ossimImageData > getNormTile(const ossimIrect &rect, ossim_uint32 resLevel)
virtual void setImageRectangle(const ossimIrect &rect)
ossim_uint32 y
bool valid() const
Definition: ossimRefPtr.h:75
float ossim_float32
ossimRefPtr< ossimImageData > theTile
const ossimIpt & ul() const
Definition: ossimIrect.h:274
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual ossim_uint32 getHeight() const
ossimImageSource * theInputConnection
ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
virtual void initialize()
Initialize the data buffer.
virtual ossimObject * dup() const
ossimConnectableObject * getInput(ossim_uint32 index=0)
returns the object at the specified index.
double ossim_float64
virtual void loadTile(const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type)
virtual ossimDataObjectStatus validate() const
ossimImageSource * theIntensityConnection
unsigned int ossim_uint32
32 bit normalized floating point
virtual void copyTileToNormalizedBuffer(ossim_float64 *buf) const
Copies entire tile to buf passed in.
const ossimIpt & lr() const
Definition: ossimIrect.h:276
virtual void copyNormalizedBufferToTile(ossim_float64 *buf)
Copies buf passed in to tile.
virtual const ossim_float64 * getMinPix() const
virtual void makeBlank()
Initializes data to null pixel values.
ossimRefPtr< ossimImageData > theNormHighPassTile
ossim_int32 y
Definition: ossimIpt.h:142
virtual const void * getBuf() const
ossim_int32 x
Definition: ossimIpt.h:141
ossimRefPtr< ossimConvolutionSource > theHighPassFilter
bool computeRegression(ossim_float64 &slopeResult, const ossimIpt &origin, ossimRefPtr< ossimImageData > panData, ossimRefPtr< ossimImageData > colorData, ossim_uint32 colorBandIdx)
ossimRefPtr< ossimImageGaussianFilter > theLowPassFilter
int ossim_int32
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)

◆ initAdjustableParameters()

void ossimLocalCorrelationFusion::initAdjustableParameters ( )
virtual

Reimplemented from ossimAdjustableParameterInterface.

Definition at line 359 of file ossimLocalCorrelationFusion.cpp.

References ossimAdjustableParameterInterface::resizeAdjustableParameterArray().

Referenced by ossimLocalCorrelationFusion().

360 {
361  resizeAdjustableParameterArray(NUMBER_OF_ADJUSTABLE_PARAMETERS);
362 
363  setAdjustableParameter(REGRESSION_COEFFICIENT_ATTENUATOR_OFFSET,
364  0.0);
365  setParameterDescription(REGRESSION_COEFFICIENT_ATTENUATOR_OFFSET,
366  "Attenuator");
367  setParameterSigma(REGRESSION_COEFFICIENT_ATTENUATOR_OFFSET,
368  2.0);
369  setParameterCenter(REGRESSION_COEFFICIENT_ATTENUATOR_OFFSET,
370  1.0);
371 
372 
373  setAdjustableParameter(REGRESSION_COEFFICIENT_CLAMP_OFFSET,
374  0.0);
375  setParameterDescription(REGRESSION_COEFFICIENT_CLAMP_OFFSET,
376  "Regression clamp");
377  setParameterSigma(REGRESSION_COEFFICIENT_CLAMP_OFFSET,
378  10.0);
379  setParameterCenter(REGRESSION_COEFFICIENT_CLAMP_OFFSET,
380  10.0);
381 
382 
383  setAdjustableParameter(HIGH_PASS_GAIN_OFFSET,
384  -1.0);
385  setParameterDescription(HIGH_PASS_GAIN_OFFSET,
386  "High pass gain");
387  setParameterSigma(HIGH_PASS_GAIN_OFFSET,
388  1);
389  setParameterCenter(HIGH_PASS_GAIN_OFFSET,
390  1.0);
391 
392  setAdjustableParameter(PAN_BLURR_WIDTH_OFFSET,
393  -1);
394  setParameterDescription(PAN_BLURR_WIDTH_OFFSET,
395  "Blurring kernel width");
396  setParameterSigma(PAN_BLURR_WIDTH_OFFSET,
397  7);
398  setParameterCenter(PAN_BLURR_WIDTH_OFFSET,
399  7.5);
400 
401 
402  setParameterOffset(PAN_BLURR_WIDTH_OFFSET,
403  1.5);
404  setParameterOffset(REGRESSION_COEFFICIENT_CLAMP_OFFSET,
405  4.0);
406 }
void setParameterDescription(ossim_uint32 idx, const ossimString &descrption)
void setParameterOffset(ossim_uint32 idx, ossim_float64 value, bool notify=false)
virtual void setAdjustableParameter(ossim_uint32 idx, double value, bool notify=false)
void resizeAdjustableParameterArray(ossim_uint32 numberOfParameters)
void setParameterCenter(ossim_uint32 idx, double center, bool notify=false)
void setParameterSigma(ossim_uint32 idx, double value, bool notify=false)

◆ initialize()

void ossimLocalCorrelationFusion::initialize ( )
virtual

Reimplemented from ossimFusionCombiner.

Definition at line 214 of file ossimLocalCorrelationFusion.cpp.

References ossimConnectableObject::connectMyInputTo(), ossimConnectableObject::disconnect(), ossimImageSource::getObject(), ossimFusionCombiner::initialize(), ossimImageGaussianFilter::initialize(), ossimConvolutionSource::initialize(), PTR_CAST, setFilters(), theHighPassFilter, ossimFusionCombiner::theIntensityConnection, and theLowPassFilter.

Referenced by getTile().

215 {
218  {
221  }
222  else
223  {
228  setFilters();
231  }
232 }
virtual void disconnect(ossimConnectableObject *object=0)
Will disconnect the object passed in.
virtual ossimObject * getObject()
For RTTI support.
ossimImageSource * theIntensityConnection
#define PTR_CAST(T, p)
Definition: ossimRtti.h:321
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
ossimRefPtr< ossimConvolutionSource > theHighPassFilter
virtual void initialize()
inherited methods
ossimRefPtr< ossimImageGaussianFilter > theLowPassFilter

◆ loadState()

bool ossimLocalCorrelationFusion::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)
virtual

Method to the load (recreate) the state of an object from a keyword list.

Return true if ok or false on error.

Reimplemented from ossimImageCombiner.

Definition at line 424 of file ossimLocalCorrelationFusion.cpp.

References adjustableParametersChanged(), ossimAdjustableParameterInterface::loadAdjustments(), and ossimImageCombiner::loadState().

426 {
427  ossimFusionCombiner::loadState(kwl, prefix);
428  loadAdjustments(kwl, prefix);
430 
431  return true;
432 }
bool loadAdjustments(const ossimKeywordlist &kwl, const ossimString &prefix=ossimString(""))
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.

◆ saveState()

bool ossimLocalCorrelationFusion::saveState ( ossimKeywordlist kwl,
const char *  prefix = 0 
) const
virtual

Method to save the state of an object to a keyword list.

Return true if ok or false on error.

Reimplemented from ossimImageCombiner.

Definition at line 415 of file ossimLocalCorrelationFusion.cpp.

References ossimAdjustableParameterInterface::saveAdjustments(), and ossimImageCombiner::saveState().

417 {
418  ossimFusionCombiner::saveState(kwl, prefix);
419  saveAdjustments(kwl, prefix);
420 
421  return true;
422 }
bool saveAdjustments(ossimKeywordlist &kwl, const ossimString &prefix=ossimString("")) const
Save all adjustments to the KWL file.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=NULL) const
Method to save the state of an object to a keyword list.

◆ setFilters()

void ossimLocalCorrelationFusion::setFilters ( )
protected

Definition at line 234 of file ossimLocalCorrelationFusion.cpp.

References ossimAdjustableParameterInterface::computeParameterOffset(), ossimImageGaussianFilter::setGaussStd(), theBlurrKernelWidth, theHighPassKernelWidth, theHighPassMatrix, and theLowPassFilter.

Referenced by initialize(), and ossimLocalCorrelationFusion().

235 {
237 
239  theHighPassMatrix = 0;
241 
242  // adjust the gain for the high pass filter
243  //
244  NEWMAT::Matrix high = theHighPassMatrix;
245 
247  double gain = computeParameterOffset(HIGH_PASS_GAIN_OFFSET)*(kernelW2);
248  double multiplier = gain/(kernelW2);
249  high = -multiplier;
252 
253  if(gain > FLT_EPSILON)
254  {
255  high[cy][cx] = multiplier* ( (kernelW2-1)+kernelW2/gain);
256  }
257  else
258  {
259  high = 0.0;
260  high[cy][cx] = 1.0;
261  }
262 
264 }
double ossim_float64
#define FLT_EPSILON
virtual void setConvolution(const double *kernel, int nrows, int ncols, bool doWeightedAverage=false)
void setGaussStd(const ossim_float64 &v)
ossimRefPtr< ossimConvolutionSource > theHighPassFilter
ossimRefPtr< ossimImageGaussianFilter > theLowPassFilter
int ossim_int32

Member Data Documentation

◆ theBlurrKernelWidth

ossim_float64 ossimLocalCorrelationFusion::theBlurrKernelWidth
protected

Definition at line 72 of file ossimLocalCorrelationFusion.h.

Referenced by adjustableParametersChanged(), and setFilters().

◆ theHighPassFilter

ossimRefPtr<ossimConvolutionSource> ossimLocalCorrelationFusion::theHighPassFilter
protected

Definition at line 78 of file ossimLocalCorrelationFusion.h.

Referenced by getTile(), initialize(), and ossimLocalCorrelationFusion().

◆ theHighPassKernelWidth

ossim_uint32 ossimLocalCorrelationFusion::theHighPassKernelWidth
protected

Definition at line 73 of file ossimLocalCorrelationFusion.h.

Referenced by setFilters().

◆ theHighPassMatrix

NEWMAT::Matrix ossimLocalCorrelationFusion::theHighPassMatrix
protected

Definition at line 83 of file ossimLocalCorrelationFusion.h.

Referenced by setFilters().

◆ theLowPassFilter

ossimRefPtr<ossimImageGaussianFilter> ossimLocalCorrelationFusion::theLowPassFilter
protected

◆ theNormColorData

ossimRefPtr<ossimImageData> ossimLocalCorrelationFusion::theNormColorData
protected

Definition at line 81 of file ossimLocalCorrelationFusion.h.

◆ theNormHighPassTile

ossimRefPtr<ossimImageData> ossimLocalCorrelationFusion::theNormHighPassTile
protected

Definition at line 80 of file ossimLocalCorrelationFusion.h.

Referenced by getTile().

◆ theNormLowPassTile

ossimRefPtr<ossimImageData> ossimLocalCorrelationFusion::theNormLowPassTile
protected

Definition at line 79 of file ossimLocalCorrelationFusion.h.

Referenced by getTile().

◆ theRegressionWidth

ossim_uint32 ossimLocalCorrelationFusion::theRegressionWidth
protected

Definition at line 74 of file ossimLocalCorrelationFusion.h.

Referenced by computeRegression(), and getTile().


The documentation for this class was generated from the following files: