forked from Kitware/kwant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscore_frames_aipr.h
47 lines (35 loc) · 1.16 KB
/
score_frames_aipr.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
/*ckwg +5
* Copyright 2010 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef score_frames_aipr_h_
#define score_frames_aipr_h_
#include <vector>
#include <tracking_data/track.h>
struct frame_based_metrics
{
double true_positives_count;
double false_negatives_count;
double false_positives_count;
double true_positives_presence;
double detection_probability_count;
double detection_probability_presence;
double precision_count;
double precision_presence;
double num_split;
//If more than 2 tracks occur in the split
double num_split_mult;
double split_fraction;
double num_merge;
//If more than 2 tracks occur in the merge
double num_merge_mult;
double merge_fraction;
double gt_with_associations;
double gt_without_associations;
};
void compute_metrics(std::vector<frame_based_metrics>& fbm,
std::vector<vidtk::track_sptr>& gt_tracks,
std::vector<vidtk::track_sptr>& comp_tracks,
double min_overlap_ratio = 0);
#endif