SourceXtractorPlusPlus  0.11
Please provide a description of the project.
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
STL class.
ImageChunk.h
SourceXtractor::Image
Interface representing an image.
Definition: Image.h:43
SourceXtractor
Definition: Aperture.h:30
std::enable_shared_from_this< ImageBase< T > >::shared_from_this
T shared_from_this(T... args)
WriteableImage.h
std::enable_shared_from_this
Image.h
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:93
SourceXtractor::UniversalImageChunk::create
static std::shared_ptr< UniversalImageChunk< T > > create(Args &&... args)
Definition: ImageChunk.h:132
SourceXtractor::ImageBase::getChunk
virtual std::shared_ptr< ImageChunk< T > > getChunk(int x, int y, int width, int height) const override
Definition: ImageBase.h:40
SourceXtractor::ImageBase::~ImageBase
virtual ~ImageBase()
Definition: ImageBase.h:38
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:93
SourceXtractor::ImageBase
Definition: ImageBase.h:35