SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AttractorsPartitionStep.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_PARTITION_ATTRACTORSPARTITIONSTEP_H
24 #define _SEIMPLEMENTATION_PARTITION_ATTRACTORSPARTITIONSTEP_H
25 
26 #include <unordered_map>
27 #include <vector>
28 
34 
35 namespace SourceXtractor {
36 
43 public:
44 
48  virtual ~AttractorsPartitionStep() = default;
49 
51  m_source_factory(source_factory) {}
52 
54 
55 private:
57 
58  void attractPixels(
62 
65 
66 
67 }; /* End of AttractorsPartitionStep class */
68 
69 } /* namespace SourceXtractor */
70 
71 
72 #endif
virtual std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
std::vector< std::vector< PixelCoordinate > > mergeAttractors(const std::unordered_map< PixelCoordinate, std::vector< PixelCoordinate >> &attractors) const
A PartitionStep gets applied on a single Source and can result any number of Sources being outputed...
Definition: Partition.h:37
virtual ~AttractorsPartitionStep()=default
Destructor.
AttractorsPartitionStep(std::shared_ptr< SourceFactory > source_factory)
A pixel coordinate made of two integers m_x and m_y.
STL class.
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::shared_ptr< SourceFactory > m_source_factory
Splits sources by identifying an attractor pixel by climbing the values gradient from every pixel...