plot.cld {image.ContourDetector} | R Documentation |
Plot the detected contour lines from the image_contour_detector
## S3 method for class 'cld' plot(x, ...)
x |
an object of class cld as returned by |
... |
further arguments passed on to plot |
invisibly a SpatialLines object with the contour lines
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")