plot.lsd: Plot the detected lines from the image_line_segment_detector

Description Usage Arguments Value Examples

View source: R/line_segment_detector.R

Description

Plot the detected lines from the image_line_segment_detector

Usage

1
2
## S3 method for class 'lsd'
plot(x, ...)

Arguments

x

an object of class lsd as returned by image_line_segment_detector

...

further arguments passed on to plot

Value

invisibly a SpatialLines object with the lines

Examples

1
2
3
4
5
6
library(pixmap)
imagelocation <- system.file("extdata", "le-piree.pgm", package="image.LineSegmentDetector")
image <- read.pnm(file = imagelocation, cellres = 1)
linesegments <- image_line_segment_detector(image@grey * 255)
plot(image)
plot(linesegments, add = TRUE, col = "red")

Example output



image.LineSegmentDetector documentation built on July 27, 2020, 5:07 p.m.