SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Plugin
DetectionFrameImages
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
21
#include "
SEFramework/Image/Image.h
"
22
#include "
SEFramework/Image/ImageAccessor.h
"
23
#include "
SEFramework/Image/ImageChunk.h
"
24
#include "
SEFramework/Property/Property.h
"
25
#include "
SEFramework/Frame/Frame.h
"
26
27
28
namespace
SourceXtractor
{
29
30
class
DetectionFrameImages
:
public
Property
{
31
32
public
:
33
virtual
~DetectionFrameImages
() =
default
;
34
35
DetectionFrameImages
(
std::shared_ptr<DetectionImageFrame>
frame
,
int
width,
int
height)
36
:
m_width
(width),
m_height
(height),
m_frame
(
frame
) {}
37
38
std::shared_ptr<ImageAccessor<SeFloat>
>
getLockedImage
(
FrameImageLayer
layer
)
const
{
39
return
std::make_shared<ImageAccessor<SeFloat>
>(
m_frame
->getImage(
layer
));
40
}
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
54
private
:
55
int
m_width
;
56
int
m_height
;
57
std::shared_ptr<DetectionImageFrame>
m_frame
;
58
};
59
60
}
61
62
#endif
/* _SEIMPLEMENTATION_PLUGIN_DETECTIONFRAMEIMAGES_DETECTIONFRAMEIMAGES_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::DetectionFrameImages
Definition
DetectionFrameImages.h:30
SourceXtractor::DetectionFrameImages::getHeight
int getHeight() const
Definition
DetectionFrameImages.h:50
SourceXtractor::DetectionFrameImages::getLockedImage
std::shared_ptr< ImageAccessor< SeFloat > > getLockedImage(FrameImageLayer layer) const
Definition
DetectionFrameImages.h:38
SourceXtractor::DetectionFrameImages::DetectionFrameImages
DetectionFrameImages(std::shared_ptr< DetectionImageFrame > frame, int width, int height)
Definition
DetectionFrameImages.h:35
SourceXtractor::DetectionFrameImages::m_frame
std::shared_ptr< DetectionImageFrame > m_frame
Definition
DetectionFrameImages.h:57
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
SourceXtractor::DetectionFrameImages::getWidth
int getWidth() const
Definition
DetectionFrameImages.h:46
SourceXtractor::DetectionFrameImages::m_height
int m_height
Definition
DetectionFrameImages.h:56
SourceXtractor::DetectionFrameImages::m_width
int m_width
Definition
DetectionFrameImages.h:55
SourceXtractor::DetectionFrameImages::~DetectionFrameImages
virtual ~DetectionFrameImages()=default
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition
Property.h:33
std::function
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::FrameImageLayer
FrameImageLayer
Definition
Frame.h:36
Generated by
1.10.0