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_ */
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
std::shared_ptr< ImageAccessor< SeFloat > > getLockedImage(FrameImageLayer layer) const
std::shared_ptr< MeasurementImageFrame > m_frame
std::shared_ptr< ImageChunk< MeasurementImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
Base class for all Properties. (has no actual content)
Definition: Property.h:33