SourceXtractorPlusPlus
0.19
SourceXtractor++, the next generation SExtractor
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEFramework
SEFramework
Psf
VariablePsfStack.h
Go to the documentation of this file.
1
17
/*
18
* VariablePsf.h
19
*
20
* Created on: Jun 25, 2018
21
* Author:
22
*/
23
24
#ifndef _SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
25
#define _SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
26
27
#include <CCfits/CCfits>
28
#include <
SEFramework/Image/VectorImage.h
>
29
#include <
SEFramework/Psf/Psf.h
>
30
31
namespace
SourceXtractor {
32
43
class
VariablePsfStack
final :
public
Psf
{
44
public
:
48
explicit
VariablePsfStack
(
std::shared_ptr<CCfits::FITS>
pFits) :
m_pFits
(pFits),
m_psf_size
(0),
mm_pixel_sampling
(0.0) {
49
setup
(pFits);
50
selfTest
();
51
};
52
56
virtual
~VariablePsfStack
() =
default
;
57
61
int
getWidth
()
const
{
62
return
m_psf_size
;
63
};
64
68
int
getHeight
()
const
{
69
return
m_psf_size
;
70
};
71
75
double
getPixelSampling
()
const
{
76
return
mm_pixel_sampling
;
77
};
78
82
const
std::vector<std::string>
&
getComponents
()
const
{
83
return
m_components
;
84
};
85
89
virtual
std::shared_ptr<VectorImage<SeFloat>
>
getPsf
(
const
std::vector<double>
& values)
const
;
90
91
private
:
92
mutable
std::mutex
m_mutex
;
93
std::shared_ptr<CCfits::FITS>
m_pFits
;
94
95
int
m_psf_size
;
96
int
m_grid_offset
;
97
98
double
mm_pixel_sampling
;
99
100
long
m_nrows
;
101
102
std::vector<SeFloat>
m_ra_values
;
103
std::vector<SeFloat>
m_dec_values
;
104
std::vector<SeFloat>
m_x_values
;
105
std::vector<SeFloat>
m_y_values
;
106
std::vector<int>
m_gridx_values
;
107
std::vector<int>
m_gridy_values
;
108
109
std::vector<std::string>
m_components
= {
"X_IMAGE"
,
"Y_IMAGE"
};
110
111
/*
112
* Check the file, load the positions and so on
113
*/
114
void
setup
(
std::shared_ptr<CCfits::FITS>
pFits);
115
116
/*
117
* consistency of the stackedPSF
118
*/
119
void
selfTest
();
120
};
121
122
}
// namespace SourceXtractor
123
124
#endif //_SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
SourceXtractor::VariablePsfStack::getComponents
const std::vector< std::string > & getComponents() const
Definition:
VariablePsfStack.h:82
SourceXtractor::VariablePsfStack::m_components
std::vector< std::string > m_components
Definition:
VariablePsfStack.h:109
std::shared_ptr< CCfits::FITS >
SourceXtractor::VariablePsfStack::VariablePsfStack
VariablePsfStack(std::shared_ptr< CCfits::FITS > pFits)
Definition:
VariablePsfStack.h:48
SourceXtractor::VariablePsfStack::getWidth
int getWidth() const
Definition:
VariablePsfStack.h:61
SourceXtractor::VariablePsfStack::~VariablePsfStack
virtual ~VariablePsfStack()=default
SourceXtractor::VariablePsfStack::m_x_values
std::vector< SeFloat > m_x_values
Definition:
VariablePsfStack.h:104
SourceXtractor::VariablePsfStack::m_y_values
std::vector< SeFloat > m_y_values
Definition:
VariablePsfStack.h:105
SourceXtractor::VariablePsfStack::getHeight
int getHeight() const
Definition:
VariablePsfStack.h:68
std::mutex
Psf.h
VectorImage.h
SourceXtractor::VariablePsfStack::setup
void setup(std::shared_ptr< CCfits::FITS > pFits)
Definition:
VariablePsfStack.cpp:32
SourceXtractor::VariablePsfStack::m_nrows
long m_nrows
Definition:
VariablePsfStack.h:100
SourceXtractor::VariablePsfStack::getPixelSampling
double getPixelSampling() const
Definition:
VariablePsfStack.h:75
SourceXtractor::Psf
Definition:
Psf.h:27
SourceXtractor::VariablePsfStack::m_gridy_values
std::vector< int > m_gridy_values
Definition:
VariablePsfStack.h:107
SourceXtractor::VariablePsfStack::selfTest
void selfTest()
Definition:
VariablePsfStack.cpp:94
std::vector< std::string >
SourceXtractor::VariablePsfStack::m_gridx_values
std::vector< int > m_gridx_values
Definition:
VariablePsfStack.h:106
SourceXtractor::VariablePsfStack::getPsf
virtual std::shared_ptr< VectorImage< SeFloat > > getPsf(const std::vector< double > &values) const
Definition:
VariablePsfStack.cpp:118
SourceXtractor::VariablePsfStack::m_pFits
std::shared_ptr< CCfits::FITS > m_pFits
Definition:
VariablePsfStack.h:93
SourceXtractor::VariablePsfStack::m_mutex
std::mutex m_mutex
Definition:
VariablePsfStack.h:92
SourceXtractor::VariablePsfStack::m_psf_size
int m_psf_size
Definition:
VariablePsfStack.h:95
SourceXtractor::VariablePsfStack::mm_pixel_sampling
double mm_pixel_sampling
Definition:
VariablePsfStack.h:98
SourceXtractor::VariablePsfStack::m_dec_values
std::vector< SeFloat > m_dec_values
Definition:
VariablePsfStack.h:103
SourceXtractor::VariablePsfStack
Definition:
VariablePsfStack.h:43
SourceXtractor::VariablePsfStack::m_grid_offset
int m_grid_offset
Definition:
VariablePsfStack.h:96
SourceXtractor::VariablePsfStack::m_ra_values
std::vector< SeFloat > m_ra_values
Definition:
VariablePsfStack.h:102
Generated by
1.8.5