SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEFramework
SEFramework
CoordinateSystem
WCS.h
Go to the documentation of this file.
1
17
/*
18
* WCS.h
19
*
20
* Created on: Nov 17, 2016
21
* Author: mschefer
22
*/
23
24
#ifndef _SEFRAMEWORK_COORDINATESYSTEM_WCS_H_
25
#define _SEFRAMEWORK_COORDINATESYSTEM_WCS_H_
26
27
#include <memory>
28
#include <map>
29
30
#include "
SEFramework/CoordinateSystem/CoordinateSystem.h
"
31
#include "
SEFramework/FITS/FitsImageSource.h
"
32
33
struct
wcsprm;
34
35
namespace
SourceXtractor
{
36
37
class
WCS
:
public
CoordinateSystem
{
38
public
:
39
explicit
WCS
(
const
FitsImageSource
& fits_image_source);
40
explicit
WCS
(
const
WCS
& original);
41
42
virtual
~WCS
();
43
44
WorldCoordinate
imageToWorld
(
ImageCoordinate
image_coordinate)
const override
;
45
ImageCoordinate
worldToImage
(
WorldCoordinate
world_coordinate)
const override
;
46
47
std::map<std::string, std::string>
getFitsHeaders
()
const override
;
48
49
void
addOffset
(
PixelCoordinate
pc);
50
51
private
:
52
void
init
(
char
* headers,
int
number_of_records);
53
54
std::unique_ptr
<wcsprm,
std::function
<void(wcsprm*)>>
m_wcs
;
55
};
56
57
}
58
59
#endif
/* _SEFRAMEWORK_COORDINATESYSTEM_WCS_H_ */
CoordinateSystem.h
FitsImageSource.h
SourceXtractor::CoordinateSystem
Definition
CoordinateSystem.h:50
SourceXtractor::FitsImageSource
Definition
FitsImageSource.h:46
SourceXtractor::WCS::WCS
WCS(const FitsImageSource &fits_image_source)
Definition
WCS.cpp:155
SourceXtractor::WCS::addOffset
void addOffset(PixelCoordinate pc)
Definition
WCS.cpp:289
SourceXtractor::WCS::m_wcs
std::unique_ptr< wcsprm, std::function< void(wcsprm *)> > m_wcs
Definition
WCS.h:54
SourceXtractor::WCS::init
void init(char *headers, int number_of_records)
Definition
WCS.cpp:180
SourceXtractor::WCS::getFitsHeaders
std::map< std::string, std::string > getFitsHeaders() const override
Definition
WCS.cpp:265
SourceXtractor::WCS::imageToWorld
WorldCoordinate imageToWorld(ImageCoordinate image_coordinate) const override
Definition
WCS.cpp:222
SourceXtractor::WCS::worldToImage
ImageCoordinate worldToImage(WorldCoordinate world_coordinate) const override
Definition
WCS.cpp:243
SourceXtractor::WCS::~WCS
virtual ~WCS()
Definition
WCS.cpp:219
std::function
std::map
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::ImageCoordinate
Definition
CoordinateSystem.h:43
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition
PixelCoordinate.h:37
SourceXtractor::WorldCoordinate
Definition
CoordinateSystem.h:34
std::unique_ptr
Generated by
1.15.0