forked from Kitware/kwant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscore_phase3_aipr.h
More file actions
54 lines (41 loc) · 1.56 KB
/
score_phase3_aipr.h
File metadata and controls
54 lines (41 loc) · 1.56 KB
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
48
49
50
51
52
53
54
/*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 INCL_SCORE_PHASE3_AIPR_H
#define INCL_SCORE_PHASE3_AIPR_H
// In phase 3, the actual metrics are produced.
#include <vector>
#include <map>
#include <algorithm>
#include <utility>
#include <scoring_framework/score_core.h>
namespace vidtk
{
struct track2track_phase2_aipr;
struct overall_phase3_aipr
{
public:
//number of computed tracks associated with multiple ground truths
int num_identity_switch;
//number of computed tracks associated with multiple ground truths divided by total number of computed tracks
double identity_switch;
//sum of all frame ranges of associated computed tracks over the sum of all frame ranges of ground truth tracks
double track_completeness_factor;
//Sum of the number of computed id's associated with a ground truth divided by the number of ground truths with associations
double track_fragmentation;
//sum of comp associated with a ground truth * the length of the ground truth all divided by the frame ranges of ground truths with associations
double normalized_track_fragmentation;
public:
overall_phase3_aipr():
num_identity_switch(0),
identity_switch(0),
track_completeness_factor(0),
track_fragmentation(0),
normalized_track_fragmentation(0)
{}
void compute( const track2track_phase2_aipr& t2t );
};
} //namespace vidtk
#endif