SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
WorldCentroidTask.cpp
Go to the documentation of this file.
1
17/*
18 * WorldCentroidTask.cpp
19 *
20 * Created on: Nov 21, 2016
21 * Author: mschefer
22 */
23
26
29
30namespace SourceXtractor {
31
33 auto coordinate_system = source.getProperty<DetectionFrameCoordinates>().getCoordinateSystem();
34
36 source.getProperty<PixelCentroid>().getCentroidX(), source.getProperty<PixelCentroid>().getCentroidY());
37
39
40 source.setProperty<WorldCentroid>(world_coordinate.m_alpha, world_coordinate.m_delta);
41}
42
43}
44
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
SeFloat getCentroidX() const
X coordinate of centroid.
SeFloat getCentroidY() const
Y coordinate of centroid.
The SourceInterface is an abstract "source" that has properties attached to it.
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.