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
Grouping
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
27
#include "
SEImplementation/Plugin/PixelCentroid/PixelCentroid.h
"
28
29
#include "
SEImplementation/Grouping/LineSelectionCriteria.h
"
30
31
namespace
SourceXtractor {
32
33
bool
LineSelectionCriteria::mustBeProcessed
(
const
SourceInterface
& source)
const
{
34
auto
& centroid = source.
getProperty
<
PixelCentroid
>();
35
return
centroid.
getCentroidY
() <
m_line_number
;
36
}
37
38
}
// SourceXtractor namespace
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::PixelCentroid::getCentroidY
SeFloat getCentroidY() const
Y coordinate of centroid.
Definition:
PixelCentroid.h:53
SourceXtractor::LineSelectionCriteria::m_line_number
int m_line_number
Definition:
LineSelectionCriteria.h:41
SourceXtractor::PixelCentroid
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values...
Definition:
PixelCentroid.h:37
PixelCentroid.h
SourceXtractor::LineSelectionCriteria::mustBeProcessed
virtual bool mustBeProcessed(const SourceInterface &) const override
Determines if the given Source must be processed or not.
Definition:
LineSelectionCriteria.cpp:33
LineSelectionCriteria.h
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
Generated by
1.8.5