SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
MeasurementFrameImages
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
21
#include "
SEFramework/Image/Image.h
"
22
#include "
SEFramework/Image/ImageAccessor.h
"
23
#include "
SEFramework/Image/ImageChunk.h
"
24
25
#include "
SEFramework/Property/Property.h
"
26
#include "
SEFramework/Frame/Frame.h
"
27
28
29
namespace
SourceXtractor
{
30
31
class
MeasurementFrameImages
:
public
Property
{
32
33
public
:
34
virtual
~MeasurementFrameImages
() =
default
;
35
36
MeasurementFrameImages
(
std::shared_ptr<MeasurementImageFrame>
frame,
int
width,
int
height)
37
:
m_width
(width),
m_height
(height),
m_frame
(frame) {}
38
39
std::shared_ptr<ImageAccessor<SeFloat>
>
getLockedImage
(
FrameImageLayer
layer)
const
{
40
return
std::make_shared<ImageAccessor<SeFloat>>(
m_frame
->getImage(layer));
41
}
42
43
std::shared_ptr<ImageChunk<MeasurementImage::PixelType>
>
getImageChunk
(
FrameImageLayer
layer,
int
x
,
int
y
,
int
width,
int
height)
const
{
44
return
m_frame
->getImage(layer)->getChunk(
x
,
y
, width, height);
45
}
46
47
int
getWidth
()
const
{
48
return
m_width
;
49
}
50
51
int
getHeight
()
const
{
52
return
m_height
;
53
}
54
55
private
:
56
int
m_width
;
57
int
m_height
;
58
std::shared_ptr<MeasurementImageFrame>
m_frame
;
59
};
60
61
}
62
63
#endif
/* _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_ */
Frame.h
ImageAccessor.h
ImageChunk.h
Image.h
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
Property.h
SourceXtractor::MeasurementFrameImages
Definition:
MeasurementFrameImages.h:31
SourceXtractor::MeasurementFrameImages::getLockedImage
std::shared_ptr< ImageAccessor< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition:
MeasurementFrameImages.h:39
SourceXtractor::MeasurementFrameImages::m_height
int m_height
Definition:
MeasurementFrameImages.h:57
SourceXtractor::MeasurementFrameImages::m_frame
std::shared_ptr< MeasurementImageFrame > m_frame
Definition:
MeasurementFrameImages.h:58
SourceXtractor::MeasurementFrameImages::getHeight
int getHeight() const
Definition:
MeasurementFrameImages.h:51
SourceXtractor::MeasurementFrameImages::~MeasurementFrameImages
virtual ~MeasurementFrameImages()=default
SourceXtractor::MeasurementFrameImages::getImageChunk
std::shared_ptr< ImageChunk< MeasurementImage::PixelType > > getImageChunk(FrameImageLayer layer, int x, int y, int width, int height) const
Definition:
MeasurementFrameImages.h:43
SourceXtractor::MeasurementFrameImages::MeasurementFrameImages
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
Definition:
MeasurementFrameImages.h:36
SourceXtractor::MeasurementFrameImages::getWidth
int getWidth() const
Definition:
MeasurementFrameImages.h:47
SourceXtractor::MeasurementFrameImages::m_width
int m_width
Definition:
MeasurementFrameImages.h:56
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition:
Property.h:33
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition:
Frame.h:35
std::shared_ptr
Generated by
1.9.1