SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
DetectionFrameSourceStamp
DetectionFrameSourceStamp.h
Go to the documentation of this file.
1
23
#ifndef _SEIMPLEMENTATION_PROPERTY_DETECTIONFRAMESOURCESTAMP_H
24
#define _SEIMPLEMENTATION_PROPERTY_DETECTIONFRAMESOURCESTAMP_H
25
26
#include "
SEFramework/Property/Property.h
"
27
#include "
SEFramework/Image/Image.h
"
28
29
namespace
SourceXtractor
{
30
36
class
DetectionFrameSourceStamp
:
public
Property
{
37
38
public
:
39
43
virtual
~DetectionFrameSourceStamp
() =
default
;
44
45
DetectionFrameSourceStamp
(
std::shared_ptr<DetectionImage>
stamp,
46
std::shared_ptr<DetectionImage>
thresholded_stamp,
PixelCoordinate
top_left,
47
std::shared_ptr<WeightImage>
variance_stamp,
std::shared_ptr<DetectionImage>
threshold_map_stamp) :
48
m_stamp
(stamp),
m_thresholded_stamp
(thresholded_stamp),
49
m_threshold_map_stamp
(threshold_map_stamp),
m_variance_stamp
(variance_stamp),
50
m_top_left
(top_left) {}
51
52
// Returns the stamp image
53
const
DetectionImage
&
getStamp
()
const
{
54
return
*
m_stamp
;
55
}
56
57
// Returns the filtered and thresholded stamp image
58
const
DetectionImage
&
getThresholdedStamp
()
const
{
59
return
*
m_thresholded_stamp
;
60
}
61
62
// Returns the threshold map stamp
63
const
DetectionImage
&
getThresholdMapStamp
()
const
{
64
return
*
m_threshold_map_stamp
;
65
}
66
67
// Returns the stamp's associated weight image
68
const
DetectionImage
&
getVarianceStamp
()
const
{
69
return
*
m_variance_stamp
;
70
}
71
72
PixelCoordinate
getTopLeft
()
const
{
73
return
m_top_left
;
74
}
75
76
private
:
77
std::shared_ptr<DetectionImage>
m_stamp
,
m_thresholded_stamp
;
78
std::shared_ptr<DetectionImage>
m_threshold_map_stamp
;
79
std::shared_ptr<WeightImage>
m_variance_stamp
;
80
PixelCoordinate
m_top_left
;
81
82
};
/* End of DetectionFrameSourceStamp class */
83
84
85
}
/* namespace SourceXtractor */
86
87
88
#endif
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition:
PixelCoordinate.h:37
std::shared_ptr
STL class.
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition:
Property.h:33
SourceXtractor::DetectionFrameSourceStamp::getTopLeft
PixelCoordinate getTopLeft() const
Definition:
DetectionFrameSourceStamp.h:72
SourceXtractor::DetectionFrameSourceStamp::getThresholdedStamp
const DetectionImage & getThresholdedStamp() const
Definition:
DetectionFrameSourceStamp.h:58
SourceXtractor::DetectionFrameSourceStamp::m_top_left
PixelCoordinate m_top_left
Definition:
DetectionFrameSourceStamp.h:80
SourceXtractor::DetectionFrameSourceStamp::getStamp
const DetectionImage & getStamp() const
Definition:
DetectionFrameSourceStamp.h:53
SourceXtractor::DetectionFrameSourceStamp::~DetectionFrameSourceStamp
virtual ~DetectionFrameSourceStamp()=default
Destructor.
SourceXtractor::Image< SeFloat >
SourceXtractor::DetectionFrameSourceStamp::getVarianceStamp
const DetectionImage & getVarianceStamp() const
Definition:
DetectionFrameSourceStamp.h:68
SourceXtractor
Definition:
Aperture.h:30
Property.h
SourceXtractor::DetectionFrameSourceStamp::m_threshold_map_stamp
std::shared_ptr< DetectionImage > m_threshold_map_stamp
Definition:
DetectionFrameSourceStamp.h:78
SourceXtractor::DetectionFrameSourceStamp::m_variance_stamp
std::shared_ptr< WeightImage > m_variance_stamp
Definition:
DetectionFrameSourceStamp.h:79
SourceXtractor::DetectionFrameSourceStamp::DetectionFrameSourceStamp
DetectionFrameSourceStamp(std::shared_ptr< DetectionImage > stamp, std::shared_ptr< DetectionImage > thresholded_stamp, PixelCoordinate top_left, std::shared_ptr< WeightImage > variance_stamp, std::shared_ptr< DetectionImage > threshold_map_stamp)
Definition:
DetectionFrameSourceStamp.h:45
SourceXtractor::DetectionFrameSourceStamp
A copy of the rectangular region of the detection image just large enough to include the whole Source...
Definition:
DetectionFrameSourceStamp.h:36
SourceXtractor::DetectionFrameSourceStamp::getThresholdMapStamp
const DetectionImage & getThresholdMapStamp() const
Definition:
DetectionFrameSourceStamp.h:63
Image.h
SourceXtractor::DetectionFrameSourceStamp::m_thresholded_stamp
std::shared_ptr< DetectionImage > m_thresholded_stamp
Definition:
DetectionFrameSourceStamp.h:77
SourceXtractor::DetectionFrameSourceStamp::m_stamp
std::shared_ptr< DetectionImage > m_stamp
Definition:
DetectionFrameSourceStamp.h:77
Generated by
1.8.17