SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AssocMode.h
Go to the documentation of this file.
1
17
18#ifndef _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODE_H_
19#define _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODE_H_
20
21#include "NdArray/NdArray.h"
22
23#include "SEUtils/Types.h"
26
27namespace SourceXtractor {
28
33class AssocMode : public Property {
34public:
35 template<typename T>
37
41 virtual ~AssocMode() = default;
42
46
47 AssocMode(bool has_assoc, const std::vector<double>& assoc_data,
48 double ref_frame_pixel_width=0.0, double ref_frame_pixel_height=0.0, unsigned int group_id=0) :
49 m_has_assoc(has_assoc), m_assoc_data(std::vector<size_t>({assoc_data.size()})),
50 m_ref_frame_pixel_width(ref_frame_pixel_width), m_ref_frame_pixel_height(ref_frame_pixel_height),
51 m_group_id(group_id) {
52 for (size_t i=0; i<assoc_data.size(); i++) {
53 m_assoc_data.at(i) = assoc_data[i];
54 }
55 }
56
57 bool getMatch() const {
58 return m_has_assoc;
59 }
60
62 return m_assoc_data;
63 }
64
65 double getRefFramePixelWidth() const {
67 }
68
69 double getRefFramePixelHeight() const {
71 }
72
73 unsigned int getGroupId() const {
74 return m_group_id;
75 }
76
77private:
79
81 //double m_ref_frame_pixel_radius;
84 unsigned int m_group_id;
85};
86
87} /* namespace SourceXtractor */
88
89#endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODE_H_ */
unsigned int getGroupId() const
Definition AssocMode.h:73
const NdArray< SeFloat > & getAssocValues() const
Definition AssocMode.h:61
virtual ~AssocMode()=default
Destructor.
double getRefFramePixelHeight() const
Definition AssocMode.h:69
AssocMode(bool has_assoc, const std::vector< double > &assoc_data, double ref_frame_pixel_width=0.0, double ref_frame_pixel_height=0.0, unsigned int group_id=0)
Definition AssocMode.h:47
NdArray< SeFloat > m_assoc_data
Definition AssocMode.h:80
Euclid::NdArray::NdArray< T > NdArray
Definition AssocMode.h:36
double getRefFramePixelWidth() const
Definition AssocMode.h:65
unsigned int m_group_id
Definition AssocMode.h:84
Base class for all Properties. (has no actual content)
Definition Property.h:33
STL namespace.
T size(T... args)