SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
NullPsf.h
Go to the documentation of this file.
1
17/*
18 * NullPsf.h
19 *
20 * Created on: 2019 M01 9
21 * Author: mschefer
22 */
23
24#ifndef _MODELFITTING_IMAGE_NULLPSF_H_
25#define _MODELFITTING_IMAGE_NULLPSF_H_
26
28
29// NullPsf, dummy type that satisfies the Psf trait but does nothing
30
31namespace ModelFitting {
32
33template <typename ImageType>
34class NullPsf {
35public:
36 NullPsf() : m_kernel(ImageTraits<ImageType>::factory(1, 1)) {}
37
38 double getPixelScale() const {
39 return 1.0;
40 }
41
43 return 1;
44 }
45
46 ImageType getScaledKernel(double /*scale*/) const {
47 return m_kernel;
48 }
49
50 void convolve(ImageType& /*image*/) const {
51 }
52
53private:
54 ImageType m_kernel;
55
56};
57
58}
59
60#endif /* _MODELFITTING_IMAGE_NULLPSF_H_ */
std::size_t getSize() const
Definition NullPsf.h:42
double getPixelScale() const
Definition NullPsf.h:38
ImageType m_kernel
Definition NullPsf.h:54
void convolve(ImageType &) const
Definition NullPsf.h:50
ImageType getScaledKernel(double) const
Definition NullPsf.h:46