LSD_line_extraction

所属分类:图形图像处理
开发工具:Visual C++
文件大小:619KB
下载次数:32
上传日期:2013-10-14 09:41:22
上 传 者chenminxcd
说明:  比较新的一个直线特征提取算法,发表在PAMI上,效果很好,值得学习
(A relatively new line feature extraction algorithm, published in the PAMI, the effect is very good, it is worth learning)

文件列表:
LSD_line_extraction (0, 2011-11-11)
LSD_line_extraction\chairs.lsd.eps (66093, 2011-11-11)
LSD_line_extraction\chairs.lsd.txt (50047, 2011-11-11)
LSD_line_extraction\chairs.pgm (1064975, 2011-11-11)
LSD_line_extraction\COPYING (34520, 2011-11-11)
LSD_line_extraction\doc (0, 2011-11-11)
LSD_line_extraction\doc\annotated.html (2162, 2011-11-11)
LSD_line_extraction\doc\doxygen.css (4828, 2011-11-11)
LSD_line_extraction\doc\doxygen.png (2352, 2011-11-11)
LSD_line_extraction\doc\files.html (1285, 2011-11-11)
LSD_line_extraction\doc\formula.repository (1023, 2011-11-11)
LSD_line_extraction\doc\form_0.png (706, 2011-11-11)
LSD_line_extraction\doc\form_1.png (633, 2011-11-11)
LSD_line_extraction\doc\form_10.png (776, 2011-11-11)
LSD_line_extraction\doc\form_2.png (639, 2011-11-11)
LSD_line_extraction\doc\form_3.png (1285, 2011-11-11)
LSD_line_extraction\doc\form_4.png (1947, 2011-11-11)
LSD_line_extraction\doc\form_5.png (1393, 2011-11-11)
LSD_line_extraction\doc\form_6.png (1808, 2011-11-11)
LSD_line_extraction\doc\form_7.png (628, 2011-11-11)
LSD_line_extraction\doc\form_8.png (1104, 2011-11-11)
LSD_line_extraction\doc\form_9.png (1001, 2011-11-11)
LSD_line_extraction\doc\functions.html (3465, 2011-11-11)
LSD_line_extraction\doc\functions_vars.html (3368, 2011-11-11)
LSD_line_extraction\doc\globals.html (6480, 2011-11-11)
LSD_line_extraction\doc\globals_defs.html (1849, 2011-11-11)
LSD_line_extraction\doc\globals_func.html (5088, 2011-11-11)
LSD_line_extraction\doc\globals_type.html (1389, 2011-11-11)
LSD_line_extraction\doc\graph_legend.dot (2181, 2011-11-11)
LSD_line_extraction\doc\graph_legend.html (4775, 2011-11-11)
LSD_line_extraction\doc\graph_legend.png (4002, 2011-11-11)
LSD_line_extraction\doc\index.html (3405, 2011-11-11)
LSD_line_extraction\doc\lsd_8c-source.html (200630, 2011-11-11)
LSD_line_extraction\doc\lsd_8c.html (295873, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a19_cgraph.png (514, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a20_cgraph.png (527, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a21_cgraph.png (574, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a22_cgraph.png (996, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a23_cgraph.png (532, 2011-11-11)
LSD_line_extraction\doc\lsd_8c_a24_cgraph.png (550, 2011-11-11)
... ...

LSD - Line Segment Detector =========================== Version 1.6 - November 11, 2011 by Rafael Grompone von Gioi Introduction ------------ LSD is an implementation of the Line Segment Detector on digital images described in the paper: "LSD: A Fast Line Segment Detector with a False Detection Control" by Rafael Grompone von Gioi, Jeremie Jakubowicz, Jean-Michel Morel, and Gregory Randall, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 32, no. 4, pp. 722-732, April, 2010. and in more details in the CMLA Technical Report: "LSD: A Line Segment Detector, Technical Report", by Rafael Grompone von Gioi, Jeremie Jakubowicz, Jean-Michel Morel, Gregory Randall, CMLA, ENS Cachan, 2010. The version implemented here includes some further improvements as described in the IPOL article of which this file is part: "LSD: a Line Segment Detector" by Rafael Grompone von Gioi, Jeremie Jakubowicz, Jean-Michel Morel, and Gregory Randall, Image Processing On Line, 2012. DOI:10.5201/ipol.2012.gjmr-lsd http://dx.doi.org/10.5201/ipol.2012.gjmr-lsd Files ----- README.txt - This file. COPYING - GNU AFFERO GENERAL PUBLIC LICENSE Version 3. Makefile - Compilation instructions for 'make'. lsd.c - LSD module ANSI C code, peer reviewed file. lsd.h - LSD module ANSI C header, peer reviewed file. lsd_cmd.c - command line interface for LSD, ANSI C code. lsd_call_example.c - Minimal example of calling LSD from a C language program. chairs.pgm - Test image in PGM format. chairs.lsd.txt - Expected result for 'chairs.pgm' image as an ASCII file. chairs.lsd.eps - Expected result for 'chairs.pgm' image as an EPS file. doc - Html code documentation. doxygen.config - doxygen configuration file for documentation generation. The files "lsd.c" and "lsd.h" were subject to peer review as part of the acceptance process of the IPOL article, and are the official version of LSD. Compiling --------- LSD is an ANSI C Language program and can be used as a module to be called from a C language program or as an independent command. In the distribution is included a Makefile file with instructions to build the command lines program 'lsd', as well as minimal example program on how to call LSD from C code. To build both programs, a C compiler (called with 'cc') must be installed on your system, as well as the program 'make'. LSD only uses the standard C library so it should compile in any ANSI C Language environment. In particular, it should compile in an Unix like system. The compiling instruction is just make from the directory where the source codes and the Makefile are located. To verify a correct compilation you can apply LSD to the test image 'chairs.pgm' and compare the result to the provided ones. An explicit example of how to compile a program using LSD as a module is provided. The compilation line for 'lsd_call_example.c' is just cc -o lsd_call_example lsd_call_example.c lsd.c -lm Running LSD Command ------------------- The simplest LSD command execution is just lsd or ./lsd if the command is not in the path. That should print LSD version and the command line interface, including the available options. The only input image format handled by LSD is PGM, in its two versions, ASCII and Binary. A useful execution would be: lsd chairs.pgm chairs.result.txt That should give the result as an ASCII file 'chairs.result.txt' where each line corresponds to a detected line segment. Each line is composed of seven numbers separated by spaces, that are x1, y1, x2, y2, width, p, -log_nfa. For example, the line: 159.232890 134.369601 160.325338 105.613616 2.735466 0.125000 17.212465 means that a line segment starting at point (159.232890,134.369601), ending at point (160.325338 105.613616) and of width 2.735466 was detected. An angle precision p of 0.125 was used, which means a gradient angle tolerance of p*180 = 0.125*180 = 22.5 degree. The opposite of the logarithm in base 10 of the NFA value of the detection was -log_10(NFA)=17.212465, so the NFA value was 10^(-17.2124656), roughly 6e-18. The length unit is the pixel and the origin of coordinates is the center of the top-left pixel (0,0). For easier visualization of the result, the LSD command can also give the output in EPS or SVG file formats. For example, lsd -P chairs.result.eps chairs.pgm chairs.result.txt will, in addition to the ASCII output file, produce the EPS file 'chairs.result.eps'. To see the full options, execute LSD command without parameters, as in './lsd'. Optional arguments should always appear before the needed arguments input and output. For example, the following line is wrong: lsd chairs.pgm -s 0.5 chairs.result.txt -> WRONG!! and should be lsd -s 0.5 chairs.pgm chairs.result.txt If the name of an input file is just - (one dash), then that file will be read from the standard input. Analogously, if the name of an output file is just - (one dash), then that file will be written to the standard output. For example, lsd - - will work as a filter, taking the input from standard input and giving the output to standard output. Code Documentation ------------------ There is a HTML documentation of the code on the directory 'doc'. The entry point is the file 'doc/index.html' that should be opened with a web browser. The documentation was automatically generated from the source code files using the Doxygen documentation system, see http://www.stack.nl/~dimitri/doxygen/. Copyright and License --------------------- Copyright (c) 2007-2011 rafael grompone von gioi LSD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. LSD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . Thanks ------ I would be grateful to receive any comment, especially about errors, bugs, or strange results.

近期下载者

相关文件


收藏者