SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
DetectionFrameImages.h
Go to the documentation of this file.
1
17
18#ifndef _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_H_
19#define _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_H_
20
26
27
28namespace SourceXtractor {
29
31
32public:
33 virtual ~DetectionFrameImages() = default;
34
36 : m_width(width), m_height(height), m_frame(frame) {}
37
41
42 std::shared_ptr<ImageChunk<DetectionImage::PixelType>> getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const {
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
54private:
58};
59
60}
61
62#endif /* _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_H_ */
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
T make_shared(T... args)