OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCorrelationSource.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 #ifndef ossimCorrelationSource_HEADER
8 #define ossimCorrelationSource_HEADER
9 
10 #include "AutoTiePoint.h"
11 #include "AtpConfig.h"
12 #include "AtpTileSource.h"
13 #include <ossim/base/ossimIrect.h>
14 #include <ossim/base/ossimRefPtr.h>
15 #include <memory>
16 namespace ATP
17 {
22 {
23 public:
27 
28  virtual ~ossimCorrelationSource();
29 
30  virtual void initialize();
31 
32  virtual ossimRefPtr<ossimImageData> getTile(const ossimIrect& origin, ossim_uint32 rLevel=0);
33 
35  unsigned int getNominalCmpPatchSize() const { return m_nominalCmpPatchSize; }
36 
37 protected:
39  void findFeatures(const ossimImageData* data, std::vector<ossimIpt>& featurePts);
40 
41  bool correlate(std::shared_ptr<AutoTiePoint> atp);
42 
43  bool OpenCVCorrelation(std::shared_ptr<AutoTiePoint> atp,
44  const ossimImageData* refpatch,
45  const ossimImageData* cmppatch);
46 
47  unsigned int m_nominalCmpPatchSize;
48 
49 };
50 }
51 #endif /* #ifndef ossimCorrelationSource_HEADER */
#define OSSIMDLLEXPORT
Finds auto-tie-points using the corss-correlation-based matching algorithm.
Base class for tile sources performing auto tie point extraction.
Definition: AtpTileSource.h:26
std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
Base class for OSSIM-based ATP generators.
Definition: AtpGenerator.h:33
unsigned int ossim_uint32
THESE FUNCTIONS REQUIRE OPENCV.
unsigned int getNominalCmpPatchSize() const
For engineering use in annotating CMP image.