SourceXtractorPlusPlus  0.15
Please provide a description of the project.
DetectionFrameInfoTask.cpp
Go to the documentation of this file.
1 
19 
20 
23 
24 namespace SourceXtractor {
25 
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 }
35 
36 } // SEImplementation namespace
37 
SourceXtractor::DetectionFrameInfo
Definition: DetectionFrameInfo.h:28
DetectionFrame.h
SourceXtractor::DetectionFrameInfoTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition: DetectionFrameInfoTask.cpp:26
DetectionFrameInfo.h
DetectionFrameInfoTask.h
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::DetectionFrame
Definition: DetectionFrame.h:33
SourceXtractor::SourceInterface::getProperty
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition: SourceInterface.h:57
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition: SourceInterface.h:46
SourceXtractor::SourceInterface::setProperty
void setProperty(Args... args)
Definition: SourceInterface.h:72