3 * mtp is the ``Multi Tracked Paths'', an implementation of the
4 * k-shortest paths algorithm for multi-target tracking.
6 * Copyright (c) 2012 Idiap Research Institute, http://www.idiap.ch/
7 * Written by Francois Fleuret <francois.fleuret@idiap.ch>
9 * This file is part of mtp.
11 * mtp is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 3 as
13 * published by the Free Software Foundation.
15 * mtp is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 * License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with selector. If not, see <http://www.gnu.org/licenses/>.
30 #include "mtp_tracker.h"
32 int main(int argc, char **argv) {
35 cerr << argv[0] << " <tracker file>" << endl;
39 ifstream *in_tracker = new ifstream(argv[1]);
41 if(in_tracker->good()) {
43 MTPTracker *tracker = new MTPTracker();
45 tracker->read(in_tracker);
46 cout << "Read " << argv[1] << endl;
48 tracker->build_graph();
51 ofstream out_traj("result.trj");
52 tracker->write_trajectories(&out_traj);
53 cout << "Wrote result.trj" << endl;
55 ofstream out_dot("graph.dot");
56 tracker->print_graph_dot(&out_dot);
57 cout << "Wrote graph.dot" << endl;
63 cerr << "Can not open " << argv[1] << endl;