From: Francois Fleuret Date: Tue, 4 Mar 2014 20:20:44 +0000 (+0100) Subject: Moved the writing of the tracker.dat to main(). X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=commitdiff_plain;h=fd7e307fc8fabc25c46ae793d70b5af4c9dd36a9 Moved the writing of the tracker.dat to main(). --- 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();