SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultiThresholdPartitionStep.h
Go to the documentation of this file.
1 
17 /*
18  * MultiThresholdPartitionStep.h
19  *
20  * Created on: Jan 17, 2017
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_
25 #define _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_
26 
27 #include "SEUtils/Types.h"
28 
32 
35 
36 
37 namespace SourceXtractor {
38 
39 class MultiThresholdNode;
40 
47 
48 public:
49 
51  unsigned int thresholds_nb, unsigned int min_deblend_area);
52 
53  virtual ~MultiThresholdPartitionStep() = default;
54 
56 
57 private:
60  const std::vector<PixelCoordinate>& pixel_coords,
63  const PixelCoordinate& offset
64  ) const;
65 
68  unsigned int m_thresholds_nb;
69  unsigned int m_min_deblend_area;
70 };
71 
72 
73 }
74 
75 
76 
77 
78 #endif /* _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_ */
SeFloat32 SeFloat
Definition: Types.h:32
std::vector< std::unique_ptr< SourceInterface > > reassignPixels(const std::vector< std::unique_ptr< SourceInterface >> &sources, const std::vector< PixelCoordinate > &pixel_coords, std::shared_ptr< VectorImage< DetectionImage::PixelType >> image, const std::vector< std::shared_ptr< MultiThresholdNode >> &source_nodes, const PixelCoordinate &offset) const
Image implementation which keeps the pixel values in memory.
Definition: VectorImage.h:52
A PartitionStep gets applied on a single Source and can result any number of Sources being outputed...
Definition: Partition.h:37
MultiThresholdPartitionStep(std::shared_ptr< SourceFactory > source_factory, SeFloat contrast, unsigned int thresholds_nb, unsigned int min_deblend_area)
A pixel coordinate made of two integers m_x and m_y.
STL class.
STL class.
virtual std::vector< std::unique_ptr< SourceInterface > > partition(std::unique_ptr< SourceInterface > source) const