From fd7e307fc8fabc25c46ae793d70b5af4c9dd36a9 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Tue, 4 Mar 2014 21:20:44 +0100 Subject: [PATCH] Moved the writing of the tracker.dat to main(). --- mtp_example.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mtp_example.cc b/mtp_example.cc index 21d6443..14132c1 100644 --- a/mtp_example.cc +++ b/mtp_example.cc @@ -126,12 +126,6 @@ void create_light_test(MTPTracker *tracker) { tracker->detection_scores[t][la] = sa; tracker->detection_scores[t][lb] = sb; } - - { // Write down the tracker setting, so that we can use it as an - // example for the mtp command line - ofstream out_tracker("tracker.dat"); - tracker->write(&out_tracker); - } } void create_heavy_test(MTPTracker *tracker) { @@ -182,6 +176,13 @@ int main(int argc, char **argv) { create_light_test(tracker); } + { + // Write down the tracker setting, so that we can use it as an + // example for the mtp command line + ofstream out_tracker("tracker.dat"); + tracker->write(&out_tracker); + } + // Performs the tracking per se tracker->track(); -- 2.20.1