-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNN2dMapper.h
More file actions
35 lines (24 loc) · 890 Bytes
/
NN2dMapper.h
File metadata and controls
35 lines (24 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <chrono>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
#include "../TrackedComponents/pose/FishPose.h"
#include "../TrackedComponents/TrackedElement.h"
#include "../TrackedComponents/TrackedTrajectory.h"
#include "imageProcessor/detector/blob/cvBlob/BlobsDetector.h"
class NN2dMapper
{
public:
/**
* The contructor with parameters.
*/
NN2dMapper(BST::TrackedTrajectory *tree);
~NN2dMapper(void) {};
std::tuple<std::vector<FishPose>, std::vector<float>> getNewPoses(BST::TrackedTrajectory* traj, uint frameid, std::vector<BlobPose> blobPoses);
std::vector<FishPose> convertBlobPosesToFishPoses(std::vector<BlobPose> blobPoses);
float estimateOrientationRad(int trackid, float *confidence);
bool correctAngle(int trackid, FishPose &pose);
std::map<int, float> _mapLastConfidentAngle;
BST::TrackedTrajectory *_tree;
protected:
};