SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
DetectionFrameInfo
DetectionFrameInfoTask.cpp
Go to the documentation of this file.
1
18
#include "
SEFramework/Property/DetectionFrame.h
"
19
20
21
#include "
SEImplementation/Plugin/DetectionFrameInfo/DetectionFrameInfo.h
"
22
#include "
SEImplementation/Plugin/DetectionFrameInfo/DetectionFrameInfoTask.h
"
23
24
namespace
SourceXtractor
{
25
26
void
DetectionFrameInfoTask::computeProperties
(
SourceInterface
&
source
)
const
{
27
auto
detection_frame
=
source
.getProperty<
DetectionFrame
>().getFrame();
28
auto
width =
detection_frame
->getOriginalImage()->getWidth();
29
auto
height =
detection_frame
->getOriginalImage()->getHeight();
30
31
source
.setProperty<
DetectionFrameInfo
>(width, height,
32
detection_frame
->getGain(),
detection_frame
->getSaturation(),
33
detection_frame
->getVarianceThreshold(),
detection_frame
->getBackgroundMedianRms(),
34
detection_frame
->getMetadata(),
detection_frame
->getHduIndex());
35
}
36
37
}
// SEImplementation namespace
38
DetectionFrameInfoTask.h
DetectionFrameInfo.h
DetectionFrame.h
SourceXtractor::DetectionFrameInfoTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition
DetectionFrameInfoTask.cpp:26
SourceXtractor::DetectionFrameInfo
Definition
DetectionFrameInfo.h:29
SourceXtractor::DetectionFrame
Definition
DetectionFrame.h:33
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0