SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ReferenceCoordinatesTask.cpp
Go to the documentation of this file.
1
17
19
23
24namespace SourceXtractor {
25
27
29
30 // Either detection or first measurement image
31 try {
32 ref_coords = source.getProperty<DetectionFrameCoordinates>().getCoordinateSystem();
33 }
36 ref_coords = m_coordinate_system;
37 } else {
38 ref_coords = source.getProperty<MeasurementFrameCoordinates>(0).getCoordinateSystem();
39 }
40 }
41
42 source.setProperty<ReferenceCoordinates>(ref_coords);
43}
44
45} // SEImplementation namespace
46
An exception indicating that a Property was not available and could not be computed on demand.
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
std::shared_ptr< CoordinateSystem > m_coordinate_system
The SourceInterface is an abstract "source" that has properties attached to it.
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.