SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
SeFloat32 SeFloat
Definition: Types.h:32
int getWidth() const final
Returns the width of the image in pixels.
int getHeight() const final
Returns the height of the image in pixels.
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
STL class.
std::string getRepr() const final
Get a string identifying this image in a human readable manner.
Image implementation which keeps the pixel values in memory.
Definition: VectorImage.h:53
static std::shared_ptr< ReplaceUndefImage< T > > create(const std::shared_ptr< VectorImage< T >> &image, T undefined)
T getValue(int x, int y) const final
Returns the value of the pixel with the coordinates (x,y)
ReplaceUndefImage(const std::shared_ptr< VectorImage< T >> &image, T invalid)
std::shared_ptr< VectorImage< T > > m_image