SourceXtractorPlusPlus  0.11
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Cleaning.h
Go to the documentation of this file.
1 
17 /*
18  * Cleaning.h
19  *
20  * Created on: 2018 M12 18
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_DEBLENDING_CLEANING_H_
25 #define _SEIMPLEMENTATION_DEBLENDING_CLEANING_H_
26 
27 #include "SEUtils/Types.h"
32 
33 namespace SourceXtractor {
34 
35 class MoffatModelFitting;
36 
37 class Cleaning : public DeblendStep {
38 
39 public:
40  Cleaning(std::shared_ptr<SourceFactory> source_factory, unsigned int min_area) :
41  m_source_factory(source_factory), m_min_area(min_area) {}
42  virtual ~Cleaning() {}
43 
44  void deblend(SourceGroupInterface& group) const override;
45 
46 private:
47  bool shouldClean(SourceInterface& source, SourceGroupInterface& group) const;
49  SourceInterface& source, const std::vector<SourceGroupInterface::iterator>& candidates) const;
50 
52  const std::vector<SourceGroupInterface::iterator> children) const;
53 
55  unsigned int m_min_area;
56 };
57 
58 }
59 
60 
61 #endif /* _SEIMPLEMENTATION_DEBLENDING_CLEANING_H_ */
std::shared_ptr< SourceFactory > m_source_factory
Definition: Cleaning.h:54
std::list< SourceWrapper >::iterator iterator
std::shared_ptr< SourceInterface > mergeSources(SourceInterface &parent, const std::vector< SourceGroupInterface::iterator > children) const
Definition: Cleaning.cpp:147
Cleaning(std::shared_ptr< SourceFactory > source_factory, unsigned int min_area)
Definition: Cleaning.h:40
bool shouldClean(SourceInterface &source, SourceGroupInterface &group) const
Definition: Cleaning.cpp:89
An action to be applied to a SourceGroup for deblending its sources.
Definition: Deblending.h:37
unsigned int m_min_area
Definition: Cleaning.h:55
Defines the interface used to group sources.
STL class.
void deblend(SourceGroupInterface &group) const override
Definition: Cleaning.cpp:45
The SourceInterface is an abstract &quot;source&quot; that has properties attached to it.
SourceGroupInterface::iterator findMostInfluentialSource(SourceInterface &source, const std::vector< SourceGroupInterface::iterator > &candidates) const
Definition: Cleaning.cpp:120