SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
23 
26 
28 
29 namespace SourceXtractor {
30 
32 
33 public:
34  virtual ~MeasurementFrameImages() = default;
35 
37  : m_width(width), m_height(height), m_frame(frame) {}
38 
41  return LockedImage<SeFloat>::create(m_frame->getImage(layer));
42  }
43 
46 
47  return m_frame->getImage(layer)->getChunk(x, y, width, height);
48  }
49 
50  int getWidth() const {
51  return m_width;
52  }
53 
54  int getHeight() const {
55  return m_height;
56  }
57 
58 private:
59  int m_width;
60  int m_height;
62 };
63 
64 }
65 
66 #endif /* _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_ */
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
static std::shared_ptr< LockedImage< T > > create(Args &&...args)
Definition: LockedImage.h:35
std::shared_ptr< MeasurementImageFrame > m_frame
std::shared_ptr< ImageChunk< MeasurementImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Base class for all Properties. (has no actual content)
Definition: Property.h:33
std::shared_ptr< Image< SeFloat > > getLockedImage(FrameImageLayer layer) const
T lock(T...args)