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