img_show | R Documentation |
Display an array of pixel as a greyscale image
img_show(x)
x |
a greyscale image, with grey levels coded in |
The input image, invisibly (this allows to use img_show() within a pipe chain).
# check that the overall grey level is reflected in the plot
img_show(matrix(runif(100, 0, 0.5), nrow=10))
img_show(matrix(runif(100, 0.5, 1), nrow=10))
# display an image
path <- system.file("extdata", "blob.jpg", package="morphr")
x <- img_read(path)
img_show(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.