LSD - Line Segment Detector
===========================
Version 1.5 - December 3, 2010
by Rafael Grompone von Gioi <grompone@gmail.com>
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
described on the LSD page at www.ipol.im. That same page includes more
information, including this code and an online demo version:
http://www.ipol.im/pub/algo/gjmr_line_segment_detector
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.
lsd.h - LSD module ANSI C header.
lsd_cmd.c - LSD command line interface, 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.
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 -lm -o lsd_call_example lsd_call_example.c lsd.c
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'
with the coordinates each line segment detected as a line in
the file like the following:
159.232890 134.369601 160.325338 105.613616 2.735466
which means that a line segment starting at point (159.232890,134.369601)
and ending at point (160.325338 105.613616) and of width 2.735466
was detected. The unit is the pixel and the origin of coordinates
is the center of 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 2007-2010 rafael grompone von gioi (grompone@gmail.com)
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 <http://www.gnu.org/licenses/>.
Thanks
------
I would be grateful to receive any comment, especially about errors,
bugs, or strange results.
没有合适的资源?快使用搜索试试~ 我知道了~
直线特征提取算法
共101个文件
png:65个
html:22个
c:3个
2星 需积分: 43 110 下载量 60 浏览量
2015-10-08
15:47:08
上传
评论
收藏 606KB ZIP 举报
温馨提示
直线特征提取算法,用于检测图像中直线特征
资源推荐
资源详情
资源评论
收起资源包目录
直线特征提取算法 (101个子文件)
lsd.c 71KB
lsd_cmd.c 36KB
lsd_call_example.c 768B
doxygen.config 43KB
COPYING 34KB
doxygen.css 5KB
graph_legend.dot 2KB
chairs.lsd.eps 67KB
lsd.h 9KB
lsd_8c.html 266KB
lsd_8c-source.html 181KB
lsd_8h.html 76KB
lsd_8h-source.html 23KB
structrect.html 15KB
structrect__iter.html 10KB
globals.html 7KB
structntuple__list__s.html 7KB
structimage__double__s.html 6KB
globals_func.html 5KB
structimage__char__s.html 5KB
graph_legend.html 5KB
structimage__int__s.html 4KB
structcoorlist.html 4KB
structpoint.html 4KB
functions.html 3KB
functions_vars.html 3KB
index.html 3KB
annotated.html 2KB
globals_defs.html 2KB
globals_type.html 1KB
files.html 1KB
Makefile 1KB
chairs.pgm 1.02MB
lsd_8h_a17_cgraph.png 10KB
lsd_8c_a53_cgraph.png 10KB
lsd_8c_a52_cgraph.png 10KB
lsd_8h_a16_cgraph.png 10KB
lsd_8c_a51_cgraph.png 10KB
lsd_8h_a15_cgraph.png 10KB
lsd_8c_a48_cgraph.png 7KB
lsd_8c_a44_cgraph.png 6KB
lsd_8c_a50_cgraph.png 5KB
lsd_8c_a29_cgraph.png 5KB
graph_legend.png 4KB
lsd_8c_a49_cgraph.png 3KB
doxygen.png 2KB
lsd_8c_a43_cgraph.png 2KB
lsd_8c_a42_cgraph.png 2KB
form_4.png 2KB
form_6.png 2KB
lsd_8c__incl.png 2KB
lsd_8c_a46_cgraph.png 2KB
form_5.png 1KB
form_3.png 1KB
lsd_8c_a45_cgraph.png 1KB
form_8.png 1KB
lsd_8c_a28_cgraph.png 1KB
lsd_8c_a21_cgraph.png 1KB
lsd_8h_a8_cgraph.png 1KB
form_9.png 1001B
lsd_8c_a18_cgraph.png 984B
lsd_8c_a27_cgraph.png 912B
lsd_8h_a14_cgraph.png 912B
lsd_8c_a30_cgraph.png 895B
lsd_8c_a47_cgraph.png 873B
form_10.png 776B
lsd_8h_a11_cgraph.png 775B
lsd_8c_a24_cgraph.png 775B
lsd_8c_a38_cgraph.png 765B
lsd_8c_a39_cgraph.png 720B
form_0.png 706B
lsd_8c_a36_cgraph.png 702B
form_2.png 639B
form_1.png 633B
form_7.png 628B
lsd_8c_a17_cgraph.png 560B
lsd_8h_a13_cgraph.png 551B
lsd_8c_a26_cgraph.png 551B
lsd_8h_a7_cgraph.png 541B
lsd_8c_a20_cgraph.png 541B
lsd_8h_a12_cgraph.png 538B
lsd_8c_a25_cgraph.png 538B
lsd_8h_a5_cgraph.png 515B
lsd_8c_a16_cgraph.png 515B
lsd_8c_a19_cgraph.png 514B
lsd_8h_a6_cgraph.png 514B
lsd_8h_a10_cgraph.png 505B
lsd_8c_a23_cgraph.png 505B
lsd_8h_a4_cgraph.png 502B
lsd_8c_a15_cgraph.png 502B
lsd_8h_a9_cgraph.png 484B
lsd_8c_a22_cgraph.png 484B
lsd_8c_a31_cgraph.png 445B
lsd_8c_a37_cgraph.png 444B
structcoorlist__coll__graph.png 432B
lsd_8c_a41_cgraph.png 373B
lsd_8h__dep__incl.png 365B
lsd_8c_a40_cgraph.png 364B
formula.repository 1023B
chairs.lsd.txt 38KB
共 101 条
- 1
- 2
资源评论
- 夏夜吉他2015-10-09不错,感觉还可以,有借鉴的地方
qq_31846867
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于keras+fasterRCNN,在VOC格式的口罩数据集上训练,检测人群中有无戴口罩python源码+模型
- 基于opencv+qt5机器视觉的传统缺陷检测, 即采用标准图片和待测图片进行pixel to pixel的XOR操作源码+文档
- 管道内检测缺陷数据库管理系统源码+文档说明+sln
- 毕业设计-低功耗STM32F411开发板(原理图+PCB源文件+官方例程+驱动等)源码+文档说明+截图
- 基于yolov5-tensorRT检测+发动机缸体内壁缺陷检测系统源码+文档说明
- 基于C++实现的锂电池缺陷检测源码+文档说明
- push_version
- 软件自制图像批量压缩工具
- 经典缺陷检测算法源码整理包含PaDiM(2020ICPR)、PatchCore(2022CVPR)、SimpleNet+文档说明
- 基于深度学习的抗梯度噪声的缺陷检测器python源码+文档说明+模型的预训练
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功