Learn R Programming

image.ContourDetector (version 0.1.1)

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

Description

Plot the detected contour lines from the image_contour_detector

Usage

# S3 method for 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

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab