SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
33namespace SourceXtractor {
34
36
37class Cleaning : public DeblendStep {
38
39public:
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
47
48private:
49 bool shouldClean(SourceInterface& source, SourceGroupInterface& group) const;
51 SourceInterface& source, const std::vector<SourceGroupInterface::iterator>& candidates) const;
52
55
57 unsigned int m_min_area;
58};
59
60}
61
62
63#endif /* _SEIMPLEMENTATION_DEBLENDING_CLEANING_H_ */
std::unique_ptr< SourceInterface > mergeSources(SourceInterface &parent, const std::vector< SourceGroupInterface::iterator > children) const
Definition Cleaning.cpp:147
SourceGroupInterface::iterator findMostInfluentialSource(SourceInterface &source, const std::vector< SourceGroupInterface::iterator > &candidates) const
Definition Cleaning.cpp:120
Cleaning(std::shared_ptr< SourceFactory > source_factory, unsigned int min_area)
Definition Cleaning.h:40
unsigned int m_min_area
Definition Cleaning.h:57
void deblend(SourceGroupInterface &group) const override
Performs the DeblendStep on the SourceGroup.
Definition Cleaning.cpp:45
std::shared_ptr< SourceFactory > m_source_factory
Definition Cleaning.h:56
std::set< PropertyId > requiredProperties() const override
Returns properties used by the deblend step.
Definition Cleaning.cpp:168
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
Defines the interface used to group sources.
std::list< SourceWrapper >::iterator iterator
The SourceInterface is an abstract "source" that has properties attached to it.