Program Listing for File KPdata.h¶
↰ Return to documentation for file (larflow/KeyPoints/KPdata.h
)
#ifndef __KPdata_h__
#define __KPdata_h__
#include "larflow/LArFlowConstants/LArFlowConstants.h"
#include <vector>
#include <string>
namespace larflow {
namespace keypoints {
class KPdata {
public:
int crossingtype;
std::vector<int> imgcoord;
std::vector<float> keypt;
int trackid;
int pid;
int vid;
int is_shower;
int origin;
KeyPoint_t kptype;
KPdata() {
crossingtype = -1;
imgcoord.clear();
keypt.clear();
trackid = 0;
pid = 0;
vid = 0;
is_shower = 0;
origin = -1;
kptype = larflow::kNumKeyPoints; // sentinal value
};
~KPdata() {};
std::string str() const;
};
bool kpdata_compare_x( const KPdata* lhs, const KPdata* rhs );
bool kpdata_compare_y( const KPdata* lhs, const KPdata* rhs );
bool kpdata_compare_z( const KPdata* lhs, const KPdata* rhs );
}
}
#endif