/bandeirantes

Bandeirantes: A Graph-based Approach for Curve Tracing and Boundary Tracking

Primary LanguageHTMLMIT LicenseMIT

Bandeirantes: A Graph-based Approach for Curve Tracing and Boundary Tracking

We provide the supplementary materials for the following scientific publication of the Bandeirantes method, which extends the previous method live wire on the fly for curve tracing and boundary tracking.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project.

Prerequisites

Build

GFT

$ cd lib/gft
$ make clean && make

Bandeirantes method

$ export GFT_DIR=$(pwd)/lib/gft
$ make clean && make

Configurations files

Format of configuration of each image

n
x1    y1     [solution]
x2    y2     [solution]
...
xn    yn     [solution]
m
x1    y1   
x2    y2   
...
xm    ym 

where:

n: number of initial points
m: number of destination points
[solution]: solution corresponding to order in list m
x y : position of the point in the image

Example:

7
148   99  7
139  165  4
129  205  6
123  246  2
111  315  5
103  379  3
 90  450  1
7
483   88
466  160
441  228
427  291
408  352
390  403
372  462

image_test.pgm

Configuration file of experiments table

Image list file

/path_to_directory_images/
image_001.pgm
image_002.pgm
image_003.pgm
...
image_last.pgm

Configuration file

/path_to_configuration_files/
conf_image_001.txt
conf_image_002.txt
conf_image_003.txt
...
conf_image_last.txt

Run

Run individual image

Usage:

main <image_file> <config_file> <method>
method: 0 ... Riverbed
        1 ... LiveWire
        2 ... G-wire
        3 ... Bandeirantes

Example:

$ ./main database/img_001.pgm database/img_001.txt 3

Run list images

Usage:

runexp <image_list> <config_list> <method>
method: 0 ... Riverbed
        1 ... LiveWire
        2 ... G-wire
        3 ... Bandeirantes

Example:

$ ./runexp txt/imglist.txt txt/conflist.txt 3

Authors

License

This project is licensed under the terms of the MIT License.