Detect line segments in raster
This application detects locally straight contours in a image. It is based on Burns, Hanson, and Riseman
method and use an a contrario validation approach (Desolneux, Moisan, and Morel). The algorithm was
published by Rafael Gromponevon Gioi, Jérémie Jakubowicz, Jean-Michel Morel and Gregory
Randall.
The given approach computes gradient and level lines of the image and detects aligned points in line
support region. The application allows to export the detected lines in a vector data.
This section describes in details the parameters available for this application. Table 5.44, page 571 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is LineSegmentDetection.
Parameter key | Parameter type |
Parameter description |
in | Input image |
Input Image |
out | Output vector data |
Output Detected lines |
elev | Group |
Elevation management |
elev.dem | Directory |
DEM directory |
elev.geoid | Input File name |
Geoid File |
elev.default | Float |
Default elevation |
norescale | Boolean |
No rescaling in [0, 255] |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
Input Image Input image on which lines will be detected.
Output Detected lines Output detected line segments (vector data).
Elevation management This group of parameters allows to manage elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.
No rescaling in [0, 255] By default, the input image amplitude is rescaled between [0,255]. Turn on this parameter to skip rescaling
Load otb application from xml file Load otb application from xml file
Save otb application to xml file Save otb application to xml file
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
None
This application has been written by OTB-Team.
These additional ressources can be useful for further information: