SourceXtractorPlusPlus  0.16
Please provide a description of the project.
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 
31 namespace ModelFitting {
32 
33 template <typename ImageType>
34 class NullPsf {
35 public:
36  NullPsf() : m_kernel(ImageTraits<ImageType>::factory(1, 1)) {}
37 
38  double getPixelScale() const {
39  return 1.0;
40  }
41 
42  std::size_t getSize() const {
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 
53 private:
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