SourceXtractorPlusPlus  0.16
Please provide a description of the project.
OverlappingBoundariesCriteria.cpp
Go to the documentation of this file.
1 
25 
26 namespace SourceXtractor {
27 
29  auto& first_boundaries = first.getProperty<PixelBoundaries>();
30  auto& second_boundaries = second.getProperty<PixelBoundaries>();
31  return !(first_boundaries.getMin().m_x > second_boundaries.getMax().m_x ||
32  first_boundaries.getMax().m_x < second_boundaries.getMin().m_x ||
33  first_boundaries.getMin().m_y > second_boundaries.getMax().m_y ||
34  first_boundaries.getMax().m_y < second_boundaries.getMin().m_y);
35 }
36 
37 
38 } // SourceXtractor namespace
39 
40 
41 
virtual bool shouldGroup(const SourceInterface &first, const SourceInterface &second) const override
Determines if the two sources should be grouped together.
The bounding box of all the pixels in the source. Both min and max coordinate are inclusive.
PixelCoordinate getMin() const
PixelCoordinate getMax() const
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.
constexpr double second