SourceXtractorPlusPlus  0.15
Please provide a description of the project.
MeasurementFrameImages.h
Go to the documentation of this file.
1 
18 #ifndef _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_
19 #define _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_
20 
24 
27 
28 
29 namespace SourceXtractor {
30 
32 
33 public:
34  virtual ~MeasurementFrameImages() = default;
35 
37  : m_width(width), m_height(height), m_frame(frame) {}
38 
40  return std::make_shared<ImageAccessor<SeFloat>>(m_frame->getImage(layer));
41  }
42 
44  return m_frame->getImage(layer)->getChunk(x, y, width, height);
45  }
46 
47  int getWidth() const {
48  return m_width;
49  }
50 
51  int getHeight() const {
52  return m_height;
53  }
54 
55 private:
56  int m_width;
57  int m_height;
59 };
60 
61 }
62 
63 #endif /* _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_ */
SourceXtractor::MeasurementFrameImages::getHeight
int getHeight() const
Definition: MeasurementFrameImages.h:51
SourceXtractor::MeasurementFrameImages::getWidth
int getWidth() const
Definition: MeasurementFrameImages.h:47
std::shared_ptr
STL class.
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
ImageChunk.h
SourceXtractor::MeasurementFrameImages::getImageChunk
std::shared_ptr< ImageChunk< MeasurementImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
Definition: MeasurementFrameImages.h:43
SourceXtractor::MeasurementFrameImages::m_height
int m_height
Definition: MeasurementFrameImages.h:57
SourceXtractor::MeasurementFrameImages::getLockedImage
std::shared_ptr< ImageAccessor< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition: MeasurementFrameImages.h:39
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition: Frame.h:35
SourceXtractor::MeasurementFrameImages::MeasurementFrameImages
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
Definition: MeasurementFrameImages.h:36
SourceXtractor::MeasurementFrameImages
Definition: MeasurementFrameImages.h:31
SourceXtractor::MeasurementFrameImages::~MeasurementFrameImages
virtual ~MeasurementFrameImages()=default
SourceXtractor
Definition: Aperture.h:30
Property.h
Image.h
Frame.h
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:94
SourceXtractor::MeasurementFrameImages::m_width
int m_width
Definition: MeasurementFrameImages.h:56
SourceXtractor::MeasurementFrameImages::m_frame
std::shared_ptr< MeasurementImageFrame > m_frame
Definition: MeasurementFrameImages.h:58
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:94
ImageAccessor.h