SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AssocMode.h
Go to the documentation of this file.
1
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
45
47 double ref_frame_pixel_radius=0.0, unsigned int group_id=0) :
50 for (size_t i=0; i<assoc_data.size(); i++) {
52 }
53 }
54
55 bool getMatch() const {
56 return m_has_assoc;
57 }
58
60 return m_assoc_data;
61 }
62
63 double getRefFramePixelRadius() const {
65 }
66
67 unsigned int getGroupId() const {
68 return m_group_id;
69 }
70
71private:
73
76 unsigned int m_group_id;
77};
78
79} /* namespace SourceXtractor */
80
81#endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODE_H_ */
T & at(const std::vector< size_t > &coords)
unsigned int getGroupId() const
Definition AssocMode.h:67
const NdArray< SeFloat > & getAssocValues() const
Definition AssocMode.h:59
virtual ~AssocMode()=default
Destructor.
NdArray< SeFloat > m_assoc_data
Definition AssocMode.h:74
double getRefFramePixelRadius() const
Definition AssocMode.h:63
AssocMode(bool has_assoc, const std::vector< double > &assoc_data, double ref_frame_pixel_radius=0.0, unsigned int group_id=0)
Definition AssocMode.h:46
unsigned int m_group_id
Definition AssocMode.h:76
Base class for all Properties. (has no actual content)
Definition Property.h:33
STL namespace.