SourceXtractorPlusPlus  0.15
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_ */
SourceXtractor::DetectionFrameImages
Definition: DetectionFrameImages.h:30
std::shared_ptr
STL class.
SourceXtractor::DetectionFrameImages::getWidth
int getWidth() const
Definition: DetectionFrameImages.h:46
SourceXtractor::DetectionFrameImages::getLockedImage
std::shared_ptr< ImageAccessor< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition: DetectionFrameImages.h:38
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
SourceXtractor::DetectionFrameImages::DetectionFrameImages
DetectionFrameImages(std::shared_ptr< DetectionImageFrame > frame, int width, int height)
Definition: DetectionFrameImages.h:35
ImageChunk.h
SourceXtractor::DetectionFrameImages::~DetectionFrameImages
virtual ~DetectionFrameImages()=default
SourceXtractor::DetectionFrameImages::getHeight
int getHeight() const
Definition: DetectionFrameImages.h:50
SourceXtractor::DetectionFrameImages::m_height
int m_height
Definition: DetectionFrameImages.h:56
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition: Frame.h:35
SourceXtractor
Definition: Aperture.h:30
Property.h
Image.h
SourceXtractor::DetectionFrameImages::getImageChunk
std::shared_ptr< ImageChunk< DetectionImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
Definition: DetectionFrameImages.h:42
Frame.h
SourceXtractor::DetectionFrameImages::m_frame
std::shared_ptr< DetectionImageFrame > m_frame
Definition: DetectionFrameImages.h:57
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:94
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:94
ImageAccessor.h
SourceXtractor::DetectionFrameImages::m_width
int m_width
Definition: DetectionFrameImages.h:55