SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceFlagsSourceTask.cpp
Go to the documentation of this file.
1
17
24
29
30namespace SourceXtractor {
31
34
35 for (auto group : m_instances_per_group) {
36 Flags source_flag = Flags::NONE;
37
38 for (auto instance : group.second) {
39 source_flag |= Flags::SATURATED * source.getProperty<SaturateFlag>(instance).getSaturateFlag();
40 source_flag |= Flags::BOUNDARY * source.getProperty<BoundaryFlag>(instance).getBoundaryFlag();
41 source_flag |= Flags::BLENDED * source.getProperty<BlendedFlag>().getBlendedFlag();
42 if (source.getProperty<MeasurementFrameRectangle>(instance).badProjection()) {
43 source_flag |= Flags::BAD_PROJECTION;
44 }
45 }
46
47 source_flags.emplace_back(source_flag);
48 }
49
50 // set the combined source flag
52}
53
54} // end SourceXtractor
std::map< std::string, std::vector< unsigned int > > m_instances_per_group
virtual void computeProperties(SourceInterface &source) const
Computes one or more properties for the Source.
The SourceInterface is an abstract "source" that has properties attached to it.
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Flags
Flagging of bad sources.
Definition SourceFlags.h:37
@ BLENDED
The object was originally blended with another one.
Definition SourceFlags.h:40
@ SATURATED
At least one pixel of the object is saturated.
Definition SourceFlags.h:41
@ BAD_PROJECTION
Failed to project some of the coordinates into one of the measurement frames.
Definition SourceFlags.h:49
@ BOUNDARY
The object is truncated (too close to an image boundary)
Definition SourceFlags.h:42
@ NONE
No flag is set.
Definition SourceFlags.h:38
static StaticPlugin< SourceFlagsPlugin > source_flags