7 #ifndef AtpGeneratorBase_H_ 8 #define AtpGeneratorBase_H_ 33 class AtpGenerator :
public std::enable_shared_from_this<AtpGenerator>
44 void setRefImage(std::shared_ptr<ossim::Image> ref_image);
45 void setCmpImage(std::shared_ptr<ossim::Image> cmp_image);
109 std::vector<ossimDpt>& validVertices);
bool getValidVertices(ossimRefPtr< ossimImageChain > chain, ossimRefPtr< ossimImageViewProjectionTransform > &ivt, std::vector< ossimDpt > &validVertices)
Establishes valid image vertices in view space for later computing overlap.
virtual ossimRefPtr< ossimImageChain > constructChain(std::shared_ptr< ossim::Image > image, ossimRefPtr< ossimImageViewProjectionTransform > &ivt)
Constructs the processing chain for the input image according to the needs of the generator...
ossimRefPtr< ossimImageChain > getCmpChain()
std::shared_ptr< ossim::Image > m_cmpImage
std::string getCmpFilename()
virtual void initialize()
Needs to be called after ref and cmp images are set.
std::shared_ptr< ossim::Image > m_refImage
Base class for tile sources performing auto tie point extraction.
std::vector< double > m_bandWeights
std::vector< std::shared_ptr< AutoTiePoint > > AtpList
ossimRefPtr< ossimImageViewProjectionTransform > m_refIVT
ossimRefPtr< ossimImageChain > m_refChain
ossimRefPtr< ossimImageViewProjectionTransform > getCmpIVT()
virtual bool generateTiePointList(ossim::TiePointList &tpList)
This is the main workhorse method.
ossimRefPtr< AtpTileSource > getAtpTileSource()
ossimRefPtr< ossimImageChain > getRefChain()
std::string getRefFilename()
ossimRefPtr< ossimImageChain > m_cmpChain
ossimRefPtr< AtpAnnotatedImage > m_annotatedCmpImage
std::vector< std::shared_ptr< TiePoint > > TiePointList
std::string getRefImageID()
Base class for OSSIM-based ATP generators.
ossimRefPtr< AtpTileSource > m_atpTileSource
ossimRefPtr< ossimImageViewProjectionTransform > getRefIVT()
THESE FUNCTIONS REQUIRE OPENCV.
void setBandWeights(const std::vector< double > weights)
When the input images are multiband, the bands must be combined into a single-band image...
void layoutSearchTileRects(ossimPolygon &overlapPoly)
Finds optimum layout of patches within the intersect area for feature search.
This class defines an abstract Handler which all image handlers(loaders) should derive from...
ossimRefPtr< AtpAnnotatedImage > m_annotatedRefImage
ossimRefPtr< ossimImageGeometry > m_viewGeom
static std::shared_ptr< AutoTiePoint > s_referenceATP
ossimImageHandler * getImageHandler(ossimRefPtr< ossimImageChain > &chain)
std::string getCmpImageID()
void setRefImage(std::shared_ptr< ossim::Image > ref_image)
std::vector< ossimIrect > m_searchTileRects
ossimRefPtr< ossimImageViewProjectionTransform > m_cmpIVT
std::basic_ostream< char > ostream
Base class for char output streams.
void setCmpImage(std::shared_ptr< ossim::Image > cmp_image)
static void writeTiePointList(ostream &out, const AtpList &tpList)
For engineering use.