Skip to content

melikeaydogan/TTPN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TTPN User Manuel

TTPN

Token Tracking Petri Net (TTPN) is a GUI to visualize activity detection.

Installation Manuel

Install CMake version 3.13.4

wget http://www.cmake.org/files/v3.13/cmake-3.13.4.tar.gz

tar xzf cmake-3.13.4.tar.gz

cd cmake-3.13.4

./configure --prefix=/home/aydogan/cmake

make

make install

Install zlib

wget http://www.zlib.net/zlib-1.2.11.tar.gz

tar -xvzf zlib-1.2.11.tar.gz

cd zlib-1.2.11

./configure --prefix=/usr/local/zlib

sudo make install

Install curl

sudo apt install curl

Install hdf5

Download hdf5-1.12.0.tar.gz from https://www.hdfgroup.org/downloads/hdf5/source-code/

tar -xvf hdf5-1.12.0.tar.gz

cd hdf5-1.12.0

./configure --prefix=$fld_install --with-zlib=$fld_install

make install

Install netcdf-c library

git clone http://github.com/Unidata/netcdf-c netcdf-c

mkdir netcdf-build

cd netcdf-build

cmake ../netcdf-c

Download and Install QtCreator 5.14.2

Download the release from https://download.qt.io/official_releases/qt/5.14/5.14.2/

chmod +x qt-opensource-linux-x64-5.14.2.run

./qt-opensource-linux-x64-5.14.2.run

Install VTK 8.2.0

After downloading the source file of the VTK from the link https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz

mkdir projects

cd projects

wget https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz

tar xvfz VTK-8.2.0.tar.gz

mkdir VTK-build

cd VTK-build

ccmake ../VTK-8.2.0

With last command line cmake window will open.

alt text

Link VTK with Qt

Press c to configure then make VTKGroup_Qt ON and configure it again.

alt text

You will get error and it wil be solved once you change the direction of the Qt, Qt5_DIR, and after this change configure it.

alt text

alt text

Directions of other Qt are be filled automatically and another configuration is needed.

alt text

alt text

After generating the build with g, then VTK is ready.

Download tv14 and make changes on the code

  1. Download tv14 from the master branch.

  2. In the mainwindow.cpp, to get images on the TTPN, change the definition of PATH_TO_TV14_FILE with your path to the tv14 file in line 39.

  3. In the CMakeLists.txt, change the VTK_DIR in line 6.

Download FeatureTracking and make changes on the code

  1. Download FeatureTracking from the master branch.

  2. In the mainFeatureTrack.cpp, change the paths in line 234 and 947.

  3. In the CMakeLists.txt, change the VTK_DIR in line 6, CMAKE_LIBRARY_PATH in line 25 and CMAKE_INCLUDE_PATH in line 26.

How to open TTPN code with QtCreator

  1. Choose Open then choose the CMakeLists.txt from. Then The code will be shown like that

alt text

  1. From the left bottom buttons, run the code then the TTPN window will appear.

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published