SourceXtractorPlusPlus  0.11
Please provide a description of the project.
ReplaceUndefImage.h
Go to the documentation of this file.
1 
18 #ifndef SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
19 #define SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
20 
22 
23 namespace SourceXtractor {
24 
30 template <typename T>
31 class ReplaceUndefImage: public ImageBase<T> {
32 private:
33  ReplaceUndefImage(const std::shared_ptr<VectorImage<T>>& image, T invalid);
34 
35 public:
39  ~ReplaceUndefImage() = default;
40 
51  return std::shared_ptr<ReplaceUndefImage<T>>(new ReplaceUndefImage(image, undefined));
52  };
53 
54  std::string getRepr() const final;
55 
56  T getValue(int x, int y) const final;
57 
58  int getWidth() const final;
59 
60  int getHeight() const final;
61 
62 private:
65 };
66 
67 extern template class ReplaceUndefImage<SeFloat>;
68 
69 } // end of namespace SourceXtractor
70 
71 #endif // SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
SourceXtractor::ReplaceUndefImage::m_invalid
T m_invalid
Definition: ReplaceUndefImage.h:64
std::string
STL class.
std::shared_ptr
STL class.
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition: Types.h:32
SourceXtractor::ReplaceUndefImage::getWidth
int getWidth() const final
Returns the width of the image in pixels.
Definition: ReplaceUndefImage.cpp:33
SourceXtractor::ReplaceUndefImage::getRepr
std::string getRepr() const final
Get a string identifying this image in a human readable manner.
Definition: ReplaceUndefImage.cpp:28
VectorImage.h
SourceXtractor::ReplaceUndefImage::getValue
T getValue(int x, int y) const final
Returns the value of the pixel with the coordinates (x,y)
Definition: ReplaceUndefImage.cpp:43
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::ReplaceUndefImage::~ReplaceUndefImage
~ReplaceUndefImage()=default
SourceXtractor::ReplaceUndefImage::getHeight
int getHeight() const final
Returns the height of the image in pixels.
Definition: ReplaceUndefImage.cpp:38
SourceXtractor::ReplaceUndefImage::create
static std::shared_ptr< ReplaceUndefImage< T > > create(const std::shared_ptr< VectorImage< T >> &image, T undefined)
Definition: ReplaceUndefImage.h:50
SourceXtractor::ReplaceUndefImage
Definition: ReplaceUndefImage.h:31
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:93
std
STL namespace.
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition: VectorImage.h:53
SourceXtractor::ReplaceUndefImage::ReplaceUndefImage
ReplaceUndefImage(const std::shared_ptr< VectorImage< T >> &image, T invalid)
Definition: ReplaceUndefImage.cpp:23
SourceXtractor::ReplaceUndefImage::m_image
std::shared_ptr< VectorImage< T > > m_image
Definition: ReplaceUndefImage.h:63
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:93
SourceXtractor::ImageBase
Definition: ImageBase.h:35