SourceXtractorPlusPlus  0.15
Please provide a description of the project.
MultiframeModelFittingTask.h
Go to the documentation of this file.
1 
17 /*
18  * MultiframeModelFittingTask.h
19  *
20  * Created on: Sep 12, 2017
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_PLUGIN_MULTIFRAMEMODELFITTING_MULTIFRAMEMODELFITTINGTASK_H_
25 #define _SEIMPLEMENTATION_PLUGIN_MULTIFRAMEMODELFITTING_MULTIFRAMEMODELFITTINGTASK_H_
26 
29 
30 namespace SourceXtractor {
31 
33 
34 public:
35  MultiframeModelFittingTask(unsigned int max_iterations,
36  std::vector<std::vector<int>> frame_indices_per_band);
37 
39 
40  virtual void computeProperties(SourceGroupInterface& group) const override;
41 
42 private:
43 
46 
47  bool isFrameValid(SourceGroupInterface& group, int frame_index) const;
48 
49  // Task configuration
50  unsigned int m_max_iterations;
52 
55 };
56 
57 }
58 
59 #endif /* _SEIMPLEMENTATION_PLUGIN_MULTIFRAMEMODELFITTING_MULTIFRAMEMODELFITTINGTASK_H_ */
A Task that acts on a SourceGroup to compute one or more properties.
Definition: GroupTask.h:36
MultiframeModelFittingTask(unsigned int max_iterations, std::vector< std::vector< int >> frame_indices_per_band)
virtual void computeProperties(SourceGroupInterface &group) const override
Computes one or more properties for the SourceGroup and/or the Sources it contains.
bool isFrameValid(SourceGroupInterface &group, int frame_index) const
std::vector< std::vector< int > > m_frame_indices_per_band
std::map< int, std::shared_ptr< VectorImage< SeFloat > > > m_debug_images
std::shared_ptr< VectorImage< SeFloat > > createWeightImage(SourceGroupInterface &group, int frame_index) const
std::map< int, std::shared_ptr< Image< SeFloat > > > m_residual_images
std::shared_ptr< VectorImage< SeFloat > > createImageCopy(SourceGroupInterface &group, int frame_index) const
Defines the interface used to group sources.