SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LineSelectionCriteria.cpp
Go to the documentation of this file.
1 
19 /*
20  * LineSelectionCriteria.cpp
21  *
22  * Created on: Nov 21, 2019
23  * Author: mschefer
24  */
25 
26 
28 
30 
31 namespace SourceXtractor {
32 
34  auto& centroid = source.getProperty<PixelCentroid>();
35  return centroid.getCentroidY() < m_line_number;
36 }
37 
38 } // SourceXtractor namespace
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
SeFloat getCentroidY() const
Y coordinate of centroid.
Definition: PixelCentroid.h:53
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values...
Definition: PixelCentroid.h:37
virtual bool mustBeProcessed(const SourceInterface &) const override
Determines if the given Source must be processed or not.
The SourceInterface is an abstract &quot;source&quot; that has properties attached to it.