Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

graph.cpp File Reference

Main routine for the inference of a graph of dynamic cluster trajectories. More...

#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <ctime>
#include "graphCharac.hh"

Go to the source code of this file.

Functions

void usage (std::string argv0)
 Usage function. More...

int main (int argc, char *argv[])
 Main procedure which takes as input TL and MT classfiles and attributes files and creates a graphe in various format as an output. More...


Detailed Description

Main routine for the inference of a graph of dynamic cluster trajectories.

This progamm creats first a GraphDynaCluster object used for infering and storing the dynamic cluster trajectories.
Then a GraphDynaCluster method is called for memory allocation and for reading the input data (classfiles and attribute files)
The kernel method of the GraphDynaCluster object, which infers the MT cluster trajectories using Kullback-Leibler divergence and a spatial constraint, is then called.
Last, GraphDynaCluster methods are called for characterization of the edges and writing the output file : 1) the characterization of the edges with mutual information 2) the characterization of the other edge attributes. This last characterization is done in the last procedure, while writing the graphe output.

Author:
P.Héas (IRIT / ENSAE / DLR / CNES)
Since:
January 2005

Definition in file graph.cpp.


Function Documentation

int main int    argc,
char *    argv[]
 

Main procedure which takes as input TL and MT classfiles and attributes files and creates a graphe in various format as an output.

The graphe created are saved on the working directory.

Parameters:
argv0  [1] Text file name of input TL classfiles and attribute files : the classfiles and attribute files are listed one after the other; The number of lines of this texte file must be equal to 2 X numberOfClassfiles.
argv0  [2] Text file name of input MT classfile and attribute file : the classfile and attribute file are listed one after the other; The number of lines of this texte file must be equal to 2
argv0  [3] Dimensionnality of the TL fetaure space
argv0  [4] Number of lines of the images
argv0  [5] Number of columns of the images
Optional parameters :
Parameters:
argv0  [6] Format of the Graph OutPut
1:standard (for future), 2: adapted to the actual interactive learning algorithm and GUI. 3: adapted to the actual interactive learning algorithm and adapted to the actual GUI where the edge are not displayed (default is 2).
argv0  [7] Resolution factor for the divergence integration
(default equals 10).
argv0  [8] (0= mean/1= divergence). If "0" the divergence calculation between consective TL clusters for edge caracterization is replaced by a simaple mean difference (default equals 0)

Definition at line 62 of file graph.cpp.

void usage std::string    argv0
 

Usage function.

Parameters:
argv0  String containing the imput output file/paramters

Definition at line 36 of file graph.cpp.


Generated on Thu Feb 17 11:01:55 2005 for Inference of a Graph of Dynamic Cluster Trajectories by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002