|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
Splits sources by identifying an attractor pixel by climbing the values gradient from every pixel. More...
#include <AttractorsPartitionStep.h>


Public Member Functions | |
| virtual | ~AttractorsPartitionStep ()=default |
| Destructor. | |
| AttractorsPartitionStep (std::shared_ptr< SourceFactory > source_factory) | |
| std::vector< std::unique_ptr< SourceInterface > > | partition (std::unique_ptr< SourceInterface > source) const override |
Public Member Functions inherited from SourceXtractor::PartitionStep | |
| virtual | ~PartitionStep ()=default |
| Destructor. | |
Private Member Functions | |
| void | attractPixels (const std::vector< std::pair< PixelCoordinate, PixelCoordinate > > &pixels_with_origin, std::unordered_map< PixelCoordinate, std::vector< PixelCoordinate > > &attractors, std::function< DetectionImage::PixelType(PixelCoordinate)> value_function) const |
| std::vector< std::vector< PixelCoordinate > > | mergeAttractors (const std::unordered_map< PixelCoordinate, std::vector< PixelCoordinate > > &attractors) const |
Private Attributes | |
| std::shared_ptr< SourceFactory > | m_source_factory |
Splits sources by identifying an attractor pixel by climbing the values gradient from every pixel.
Definition at line 42 of file AttractorsPartitionStep.h.
|
virtualdefault |
Destructor.
|
inlineexplicit |
Definition at line 50 of file AttractorsPartitionStep.h.
|
private |
Definition at line 79 of file AttractorsPartitionStep.cpp.
References attractPixels(), and std::max().
Referenced by attractPixels(), and partition().

|
private |
Definition at line 130 of file AttractorsPartitionStep.cpp.
References std::begin(), std::max(), and std::min().
Referenced by partition().

|
overridevirtual |
Implements SourceXtractor::PartitionStep.
Definition at line 35 of file AttractorsPartitionStep.cpp.
References attractPixels(), SourceXtractor::DetectionFrameSourceStamp::getStamp(), std::numeric_limits::lowest(), m_source_factory, mergeAttractors(), and std::move().

|
private |
Definition at line 56 of file AttractorsPartitionStep.h.
Referenced by partition().