# LineSegmentDetection

## Brief Description

Detect line segments in raster

## Tags

Feature Extraction

## Long Description

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 exporting the detected lines in a vector data.

## Parameters

- [param] -in <string> Input image on which lines will be detected.. Mandatory: True. Default Value: ""
- [param] -out <string> Output detected line segments (vector data).. Mandatory: True. Default Value: ""
- [param] -elev <string> This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application. Mandatory: True. Default Value: "0"
- [param] -norescale <boolean> By default, the input image amplitude is rescaled between [0,255]. Turn on this parameter to skip rescaling. Mandatory: False. Default Value: "True"

## Limitations

None

## Authors

OTB-Team

## See Also

On Line demonstration of the LSD algorithm is available here: http://www.ipol.im/pub/algo/gjmr_line_segment_detector/

## Example of use

- in: QB_Suburb.png

- out: LineSegmentDetection.shp