Learn R Programming

image.ContourDetector (version 0.1.2)

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, ...)

Value

invisibly a SpatialLines object with the contour lines

Arguments

x

an object of class cld as returned by image_contour_detector

...

further arguments passed on to plot

Examples

Run this code
# \dontshow{
if(require(pixmap)){
# }
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")
# \dontshow{
} # End of main if statement running only if the required packages are installed
# }

Run the code above in your browser using DataLab