SourceXtractorPlusPlus  0.16
Please provide a description of the project.
DetectionFrameImages.h
Go to the documentation of this file.
1 
18 #ifndef _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_H_
19 #define _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_H_
20 
26 
27 
28 namespace SourceXtractor {
29 
31 
32 public:
33  virtual ~DetectionFrameImages() = default;
34 
36  : m_width(width), m_height(height), m_frame(frame) {}
37 
39  return std::make_shared<ImageAccessor<SeFloat>>(m_frame->getImage(layer));
40  }
41 
43  return m_frame->getImage(layer)->getChunk(x, y, width, height);
44  }
45 
46  int getWidth() const {
47  return m_width;
48  }
49 
50  int getHeight() const {
51  return m_height;
52  }
53 
54 private:
55  int m_width;
56  int m_height;
58 };
59 
60 }
61 
62 #endif /* _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_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
DetectionFrameImages(std::shared_ptr< DetectionImageFrame > frame, int width, int height)
std::shared_ptr< DetectionImageFrame > m_frame
std::shared_ptr< ImageChunk< DetectionImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
Base class for all Properties. (has no actual content)
Definition: Property.h:33