View source: R/line_segment_detector.R
| plot.lsd | R Documentation |
Plot the detected lines from the image_line_segment_detector
## S3 method for class 'lsd'
plot(x, ...)
x |
an object of class lsd as returned by |
... |
further arguments passed on to plot |
invisibly a SpatialLines object with the lines
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.