SourceXtractorPlusPlus  0.13
Please provide a description of the project.
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_ */
std::lock
T lock(T... args)
SourceXtractor::MeasurementFrameImages::getHeight
int getHeight() const
Definition: MeasurementFrameImages.h:54
SourceXtractor::MeasurementFrameImages::getWidth
int getWidth() const
Definition: MeasurementFrameImages.h:50
std::shared_ptr
STL class.
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
ImageChunk.h
SourceXtractor::MeasurementFrameImages::getImageChunk
std::shared_ptr< ImageChunk< MeasurementImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
Definition: MeasurementFrameImages.h:44
SourceXtractor::MeasurementFrameImages::getLockedImage
std::shared_ptr< Image< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition: MeasurementFrameImages.h:39
SourceXtractor::MeasurementFrameImages::m_height
int m_height
Definition: MeasurementFrameImages.h:60
std::lock_guard< std::recursive_mutex >
SourceXtractor::MultithreadedMeasurement::g_global_mutex
static std::recursive_mutex g_global_mutex
Definition: MultithreadedMeasurement.h:53
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition: Frame.h:35
SourceXtractor::MeasurementFrameImages::MeasurementFrameImages
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
Definition: MeasurementFrameImages.h:36
SourceXtractor::MeasurementFrameImages
Definition: MeasurementFrameImages.h:31
SourceXtractor::MeasurementFrameImages::~MeasurementFrameImages
virtual ~MeasurementFrameImages()=default
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::LockedImage::create
static std::shared_ptr< LockedImage< T > > create(Args &&... args)
Definition: LockedImage.h:35
Property.h
Image.h
Frame.h
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:94
SourceXtractor::MeasurementFrameImages::m_width
int m_width
Definition: MeasurementFrameImages.h:59
LockedImage.h
SourceXtractor::MeasurementFrameImages::m_frame
std::shared_ptr< MeasurementImageFrame > m_frame
Definition: MeasurementFrameImages.h:61
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:94