SourceXtractorPlusPlus  0.8
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 ModelFitting {
34  class ExtendedModel;
35 }
36 
37 namespace SourceXtractor {
38 
39 class MoffatModelFitting;
40 
41 class Cleaning : public DeblendStep {
42 
43 public:
44  Cleaning(std::shared_ptr<SourceFactory> source_factory, unsigned int min_area) :
45  m_source_factory(source_factory), m_min_area(min_area) {}
46  virtual ~Cleaning() {}
47 
48  void deblend(SourceGroupInterface& group) const override;
49 
50 private:
51  bool shouldClean(SourceInterface& source, SourceGroupInterface& group) const;
53  SourceInterface& source, const std::vector<SourceGroupInterface::iterator>& candidates) const;
54 
56  const std::vector<SourceGroupInterface::iterator> children) const;
57 
59  unsigned int m_min_area;
60 };
61 
62 }
63 
64 
65 #endif /* _SEIMPLEMENTATION_DEBLENDING_CLEANING_H_ */
std::shared_ptr< SourceFactory > m_source_factory
Definition: Cleaning.h:58
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:44
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:59
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