SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoordinateSystem.h
Go to the documentation of this file.
1 
17 /*
18  * CoordinateSystem.h
19  *
20  * Created on: Nov 17, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_COORDINATESYSTEM_COORDINATESYSTEM_H_
25 #define _SEFRAMEWORK_COORDINATESYSTEM_COORDINATESYSTEM_H_
26 
28 #include <map>
29 #include <string>
30 
31 namespace SourceXtractor {
32 
34  double m_alpha, m_delta;
35 
37  WorldCoordinate(double alpha, double delta) : m_alpha(alpha), m_delta(delta) {}
38 };
39 
40 // Note: (0,0) is the center of the first pixel
41 
43  double m_x, m_y;
44 
45  ImageCoordinate() : m_x(0), m_y(0) {}
46  ImageCoordinate(double x, double y) : m_x(x), m_y(y) {}
47 };
48 
49 
51 public:
52  virtual ~CoordinateSystem() = default;
53 
54  virtual WorldCoordinate imageToWorld(ImageCoordinate image_coordinate) const = 0;
55  virtual ImageCoordinate worldToImage(WorldCoordinate world_coordinate) const = 0;
56 
58  return {};
59  };
60 };
61 
62 }
63 
64 #endif /* _SEFRAMEWORK_COORDINATESYSTEM_COORDINATESYSTEM_H_ */
ImageCoordinate(double x, double y)
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
virtual std::map< std::string, std::string > getFitsHeaders() const
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
WorldCoordinate(double alpha, double delta)
virtual ~CoordinateSystem()=default
virtual WorldCoordinate imageToWorld(ImageCoordinate image_coordinate) const =0
virtual ImageCoordinate worldToImage(WorldCoordinate world_coordinate) const =0