plot.cld: Plot the detected contour lines from the...

Description Usage Arguments Value Examples

View source: R/contour_detector.R

Description

Plot the detected contour lines from the image_contour_detector

Usage

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

Arguments

x

an object of class cld as returned by image_contour_detector

...

further arguments passed on to plot

Value

invisibly a SpatialLines object with the contour lines

Examples

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

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