SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::WCS Class Reference

#include <WCS.h>

Inheritance diagram for SourceXtractor::WCS:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::WCS:
Collaboration graph
[legend]

Public Member Functions

 WCS (const FitsImageSource &fits_image_source)
 
 WCS (const WCS &original)
 
virtual ~WCS ()
 
WorldCoordinate imageToWorld (ImageCoordinate image_coordinate) const override
 
ImageCoordinate worldToImage (WorldCoordinate world_coordinate) const override
 
std::map< std::string, std::stringgetFitsHeaders () const override
 
void addOffset (PixelCoordinate pc)
 
- Public Member Functions inherited from SourceXtractor::CoordinateSystem
virtual ~CoordinateSystem ()=default
 

Private Member Functions

void init (char *headers, int number_of_records)
 

Private Attributes

std::unique_ptr< wcsprm, std::function< void(wcsprm *)> m_wcs )
 

Detailed Description

Definition at line 37 of file WCS.h.

Constructor & Destructor Documentation

◆ WCS() [1/2]

SourceXtractor::WCS::WCS ( const FitsImageSource & fits_image_source)
explicit

Definition at line 155 of file WCS.cpp.

References init().

Here is the call graph for this function:

◆ WCS() [2/2]

SourceXtractor::WCS::WCS ( const WCS & original)
explicit

Definition at line 162 of file WCS.cpp.

References std::free(), and init().

Here is the call graph for this function:

◆ ~WCS()

SourceXtractor::WCS::~WCS ( )
virtual

Definition at line 219 of file WCS.cpp.

Member Function Documentation

◆ addOffset()

void SourceXtractor::WCS::addOffset ( PixelCoordinate pc)

Definition at line 289 of file WCS.cpp.

References m_wcs.

◆ getFitsHeaders()

std::map< std::string, std::string > SourceXtractor::WCS::getFitsHeaders ( ) const
overridevirtual

Reimplemented from SourceXtractor::CoordinateSystem.

Definition at line 265 of file WCS.cpp.

References std::free(), m_wcs, and std::make_pair().

Here is the call graph for this function:

◆ imageToWorld()

WorldCoordinate SourceXtractor::WCS::imageToWorld ( ImageCoordinate image_coordinate) const
overridevirtual

Implements SourceXtractor::CoordinateSystem.

Definition at line 222 of file WCS.cpp.

References m_wcs, SourceXtractor::safe_wcssub, and SourceXtractor::wcsRaiseOnTransformError().

Here is the call graph for this function:

◆ init()

void SourceXtractor::WCS::init ( char * headers,
int number_of_records )
private

◆ worldToImage()

ImageCoordinate SourceXtractor::WCS::worldToImage ( WorldCoordinate world_coordinate) const
overridevirtual

Implements SourceXtractor::CoordinateSystem.

Definition at line 243 of file WCS.cpp.

References std::numeric_limits::infinity(), Euclid::Configuration::logger, m_wcs, SourceXtractor::safe_wcssub, and Elements::Logging::warn().

Here is the call graph for this function:

Member Data Documentation

◆ m_wcs

std::unique_ptr<wcsprm, std::function<void(wcsprm*)> SourceXtractor::WCS::m_wcs)
private

Definition at line 54 of file WCS.h.

Referenced by addOffset(), getFitsHeaders(), imageToWorld(), init(), and worldToImage().


The documentation for this class was generated from the following files: