SourceXtractorPlusPlus  0.10
Please provide a description of the project.
ImageSource.h
Go to the documentation of this file.
1 
17 /*
18  * ImageSource.h
19  *
20  * Created on: Feb 14, 2018
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_
25 #define _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_
26 
29 
30 namespace SourceXtractor {
31 
33 public:
34  virtual ~ImageSourceBase() = default;
35 
37  virtual std::string getRepr() const = 0;
38 };
39 
40 template <typename T>
41 class ImageSource : public ImageSourceBase {
42 public:
43 
45 
46  virtual ~ImageSource() = default;
47 
48  virtual std::shared_ptr<ImageTile<T>> getImageTile(int x, int y, int width, int height) const = 0;
49 
50  virtual void saveTile(ImageTile<T>& tile) = 0;
51 
53  virtual int getWidth() const = 0;
54 
56  virtual int getHeight() const = 0;
57 
58 private:
59 
60 };
61 
62 }
63 
64 #endif /* _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_ */
virtual std::string getRepr() const =0
Human readable representation of this source.
STL class.
virtual int getHeight() const =0
Returns the height of the image in pixels.
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
STL class.
virtual ~ImageSourceBase()=default
virtual int getWidth() const =0
Returns the width of the image in pixels.
virtual void saveTile(ImageTile< T > &tile)=0
virtual std::shared_ptr< ImageTile< T > > getImageTile(int x, int y, int width, int height) const =0
virtual ~ImageSource()=default