SourceXtractorPlusPlus  0.16
Please provide a description of the project.
ExternalFlagTask.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
24 #define _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
25 
31 
32 namespace SourceXtractor {
33 
34 namespace ExternalFlagCombineTypes {
35 struct Or;
36 struct And;
37 struct Min;
38 struct Max;
39 struct Most;
40 }
41 
47 template <typename Combine>
48 class ExternalFlagTask : public SourceTask {
49 
50 public:
51 
52  virtual ~ExternalFlagTask();
53 
54  ExternalFlagTask(std::shared_ptr<FlagImage> flag_image, unsigned int flag_instance);
55 
56  void computeProperties(SourceInterface& source) const override;
57 
58 private:
59 
61  unsigned int m_flag_instance;
62 
63 };
64 
67 
70 
73 
76 
79 
80 } /* namespace SourceXtractor */
81 
82 
83 #endif
Task to produce the ExternalFlag Property.
std::unique_ptr< ImageAccessor< FlagImage::PixelType > > m_flag_image
ExternalFlagTask(std::shared_ptr< FlagImage > flag_image, unsigned int flag_instance)
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
The SourceInterface is an abstract "source" that has properties attached to it.
A Task that acts on a Source to compute one or more properties.
Definition: SourceTask.h:36