SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MeasurementFrameTask.h
Go to the documentation of this file.
1
17/*
18 * MeasurementFrameTask.h
19 *
20 * Created on: Nov 3, 2016
21 * Author: mschefer
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAME_MEASUREMENTFRAMETASK_H_
25#define _SEIMPLEMENTATION_PLUGIN_MEASUREMENTFRAME_MEASUREMENTFRAMETASK_H_
26
28
29namespace SourceXtractor {
30
32public:
33
37 virtual ~MeasurementFrameTask() = default;
38
39 MeasurementFrameTask(unsigned int instance, std::shared_ptr<MeasurementImageFrame> measurement_frame) :
40 m_instance(instance),
41 m_measurement_frame(measurement_frame) {}
42
43 void computeProperties(SourceInterface& source) const override;
44
45private:
46 unsigned int m_instance;
48};
49
51public:
52
56 virtual ~DefaultMeasurementFrameTask() = default;
57
58 explicit DefaultMeasurementFrameTask(unsigned int instance) : m_instance(instance) {}
59
60 void computeProperties(SourceInterface& source) const override;
61
62private:
63 unsigned int m_instance;
64};
65}
66
67#endif
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
virtual ~DefaultMeasurementFrameTask()=default
Destructor.
MeasurementFrameTask(unsigned int instance, std::shared_ptr< MeasurementImageFrame > measurement_frame)
virtual ~MeasurementFrameTask()=default
Destructor.
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
std::shared_ptr< MeasurementImageFrame > m_measurement_frame
The SourceInterface is an abstract "source" that has properties attached to it.
A Task that acts on a Source to compute one or more properties.
Definition SourceTask.h:36