SourceXtractorPlusPlus
0.13
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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/ImageChunk.h
"
23
24
#include "
SEFramework/Property/Property.h
"
25
#include "
SEFramework/Frame/Frame.h
"
26
27
#include "
SEImplementation/Image/LockedImage.h
"
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<Image<SeFloat>
>
getLockedImage
(
FrameImageLayer
layer)
const
{
40
std::lock_guard<std::recursive_mutex>
lock
(
MultithreadedMeasurement::g_global_mutex
);
41
return
LockedImage<SeFloat>::create
(
m_frame
->getImage(layer));
42
}
43
44
std::shared_ptr<ImageChunk<MeasurementImage::PixelType>
>
getImageChunk
(
FrameImageLayer
layer,
int
x
,
int
y
,
int
width
,
int
height
)
const
{
45
std::lock_guard<std::recursive_mutex>
lock
(
MultithreadedMeasurement::g_global_mutex
);
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
;
61
std::shared_ptr<MeasurementImageFrame>
m_frame
;
62
};
63
64
}
65
66
#endif
/* _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAMEIMAGES_MEASUREMENTFRAMEIMAGES_H_ */
SourceXtractor::MeasurementFrameImages::MeasurementFrameImages
MeasurementFrameImages(std::shared_ptr< MeasurementImageFrame > frame, int width, int height)
Definition:
MeasurementFrameImages.h:36
std::shared_ptr
SourceXtractor::MeasurementFrameImages
Definition:
MeasurementFrameImages.h:31
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::MeasurementFrameImages::~MeasurementFrameImages
virtual ~MeasurementFrameImages()=default
SourceXtractor::LockedImage::create
static std::shared_ptr< LockedImage< T > > create(Args &&...args)
Definition:
LockedImage.h:35
Property.h
SourceXtractor::MeasurementFrameImages::m_frame
std::shared_ptr< MeasurementImageFrame > m_frame
Definition:
MeasurementFrameImages.h:61
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
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition:
Property.h:33
Image.h
SourceXtractor::MeasurementFrameImages::m_width
int m_width
Definition:
MeasurementFrameImages.h:59
Frame.h
SourceXtractor::MeasurementFrameImages::getLockedImage
std::shared_ptr< Image< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition:
MeasurementFrameImages.h:39
std::lock
T lock(T...args)
SourceXtractor::MeasurementFrameImages::getHeight
int getHeight() const
Definition:
MeasurementFrameImages.h:54
ImageChunk.h
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition:
Frame.h:35
std::lock_guard
ModelFitting::height
height
Definition:
CompactModelBase.icpp:19
SourceXtractor::MultithreadedMeasurement::g_global_mutex
static std::recursive_mutex g_global_mutex
Definition:
MultithreadedMeasurement.h:53
ModelFitting::width
width
Definition:
CompactModelBase.icpp:19
SourceXtractor::MeasurementFrameImages::m_height
int m_height
Definition:
MeasurementFrameImages.h:60
LockedImage.h
SourceXtractor::MeasurementFrameImages::getWidth
int getWidth() const
Definition:
MeasurementFrameImages.h:50
Generated by
1.8.5