Skip to content

T-Linkage algorithm implementation for line fitting problems.

Notifications You must be signed in to change notification settings

Lys-san/T-Linkage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-Linkage

Overview

Implementation of the T-Linkage algorithm for multiple line fitting problems, based on L. Magri & A. Fusiello work [1].

Install

This program is coded using C++, its compilation requires :

Clone repository :

git clone https://github.com/Lys-san/T-Linkage.git

Build Makefile :

cmake CMakeLists.txt

and then the executable :

make

The generated executable file is tlk.exe.

Usage

The demo.cpp file proposes 2 available modes :

  • Multiple line detection from a randomly generated data set
  • Multiple line detection from an input image.

Multiple line detection from a randomly generated data set

preview

command : ./tlk

The file include/settings.h contains global parameters (number of inliers and outliers, noise, threshold etc...) that you may want to modify.

Note that depending on the size of the generated data set, computation may take some time.

Multiple line detection fom an input image

preview

command : ./tlk image.jpg

Where image.jpg is your input image (format can be JPEG, PNG, TIFF and more). Some example images can be found in the input folder.

Please note that complex images containg really noisy parts (like tree leaves or complex patterns) may not show good results.

The file include/settings.h contains global parameters (threshold for image contouring, data set extraction filter value, etc...) that you may want to modify.

For any more information, please contact me at lysandre.macke@enpc.fr

References

[1] Luca Magri and Andrea Fusiello. T-linkage: A continuous relaxation of j-linkage for multi-model fitting. CVPR 2014.

About

T-Linkage algorithm implementation for line fitting problems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published