SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageBase.h
Go to the documentation of this file.
1 
17 /*
18  * ImageBase.h
19  *
20  * Created on: Aug 31, 2017
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_IMAGE_IMAGEBASE_H_
25 #define _SEFRAMEWORK_IMAGE_IMAGEBASE_H_
26 
27 
31 
32 namespace SourceXtractor {
33 
34 template <typename T>
35 class ImageBase : public virtual Image<T>, public std::enable_shared_from_this<ImageBase<T>> {
36 
37 public:
38  virtual ~ImageBase() {}
39 
40  virtual std::shared_ptr<ImageChunk<T>> getChunk(int x, int y, int width, int height) const override {
41  return UniversalImageChunk<T>::create(this->shared_from_this(), x, y, width, height);
42  }
43 
44 };
45 
46 }
47 
48 
49 
50 #endif /* _SEFRAMEWORK_IMAGE_IMAGEBASE_H_ */
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
static std::shared_ptr< UniversalImageChunk< T > > create(Args &&...args)
Definition: ImageChunk.h:118
Interface representing an image.
Definition: Image.h:43
virtual std::shared_ptr< ImageChunk< T > > getChunk(int x, int y, int width, int height) const override
Definition: ImageBase.h:40