OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AtpAnnotatedImage.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 AtpAnnotatedImage_H_
8 #define AtpAnnotatedImage_H_
9 
16 #include <ossim/reg/Image.h>
17 #include "AutoTiePoint.h"
18 #include <vector>
19 #include <memory>
20 
21 namespace ATP
22 {
23 
28 
29 {
30 public:
33  const ossimDrect& aoi);
35 
36  void setImageName(const std::string& name) { m_annFilename = name; }
37  void setAOI(const ossimDrect& aoi);
38  void annotateFeatureSearchTiles(std::vector<ossimIrect>& tileRects);
39  void annotateFeatures(std::vector<ossimDpt>& atpList, int r, int g, int b);
40  void annotateCorrelations(AtpList& atpList, int r, int g, int b);
41  void annotateCorrelationSearchTile(const ossimIrect& tileRect);
42  void annotateOverlap(ossimPolygon& poly);
43  void annotateResiduals(AtpList& atps, int r, int g, int b);
44  void annotateTPIDs(AtpList& atps, int r, int g, int b);
45  void annotateCorrBoxes(AtpList& atpList, int r);
46 
47  bool write();
48 
49 protected:
50  void drawBox(const ossimIrect& rect, int r, int g, int b);
51 
53  ossimDpt m_annScale; // For engineering use
54  ossimDpt m_annScaleInverse; // For engineering use
57 };
58 }
59 #endif /* AtpAnnotatedImage_H_ */
void annotateCorrelations(AtpList &atpList, int r, int g, int b)
AtpAnnotatedImage(ossimRefPtr< ossimImageChain > &sourceChain, ossimRefPtr< ossimImageViewProjectionTransform > &ivt, const ossimDrect &aoi)
std::vector< std::shared_ptr< AutoTiePoint > > AtpList
Definition: AutoTiePoint.h:137
void annotateCorrBoxes(AtpList &atpList, int r)
void annotateOverlap(ossimPolygon &poly)
void setAOI(const ossimDrect &aoi)
void annotateTPIDs(AtpList &atps, int r, int g, int b)
void annotateFeatures(std::vector< ossimDpt > &atpList, int r, int g, int b)
THESE FUNCTIONS REQUIRE OPENCV.
ossimRefPtr< ossimAnnotationSource > m_annSource
void setImageName(const std::string &name)
void annotateCorrelationSearchTile(const ossimIrect &tileRect)
void annotateResiduals(AtpList &atps, int r, int g, int b)
void drawBox(const ossimIrect &rect, int r, int g, int b)
For engineering use in ATP.
void annotateFeatureSearchTiles(std::vector< ossimIrect > &tileRects)