SourceXtractorPlusPlus
0.12
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
src
lib
Plugin
MeasurementFrameInfo
MeasurementFrameInfoTask.cpp
Go to the documentation of this file.
1
18
#include "
SEImplementation/Plugin/MeasurementFrame/MeasurementFrame.h
"
19
20
21
#include "
SEImplementation/Plugin/MeasurementFrameInfo/MeasurementFrameInfo.h
"
22
#include "
SEImplementation/Plugin/MeasurementFrameInfo/MeasurementFrameInfoTask.h
"
23
24
namespace
SourceXtractor {
25
26
void
MeasurementFrameInfoTask::computeProperties
(
SourceInterface
& source)
const
{
27
auto
frame = source.
getProperty
<
MeasurementFrame
>(
m_instance
).getFrame();
28
auto
width
= frame->getOriginalImage()->getWidth();
29
auto
height
= frame->getOriginalImage()->getHeight();
30
31
source.
setIndexedProperty
<
MeasurementFrameInfo
>(
m_instance
,
width
,
height
,
32
frame->getGain(), frame->getSaturation(),
33
frame->getVarianceThreshold(), frame->getBackgroundMedianRms());
34
}
35
36
}
// SEImplementation namespace
37
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::setIndexedProperty
void setIndexedProperty(std::size_t index, Args...args)
Convenience template method to call setProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:64
SourceXtractor::MeasurementFrameInfoTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
MeasurementFrameInfoTask.cpp:26
MeasurementFrameInfoTask.h
SourceXtractor::MeasurementFrameInfo
Definition:
MeasurementFrameInfo.h:28
SourceXtractor::MeasurementFrame
Definition:
MeasurementFrame.h:36
MeasurementFrame.h
ModelFitting::height
height
Definition:
CompactModelBase.icpp:19
ModelFitting::width
width
Definition:
CompactModelBase.icpp:19
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
MeasurementFrameInfo.h
SourceXtractor::MeasurementFrameInfoTask::m_instance
unsigned int m_instance
Definition:
MeasurementFrameInfoTask.h:42
Generated by
1.8.5