importImage | R Documentation |
This function is a wrapper to the load.image
and
image_read
functions, and imports an image file and
returns the image as a 'cimg' object. The following file formats are
supported: TIFF, PNG, JPG/JPEG, and BMP. In the event that the image in
question contains an alpha channel, that channel is omitted.
importImage(path2file)
path2file |
path to file |
An image of class 'cimg'.
path2img <- system.file("images/beads_large1.bmp", package = 'biopixR')
img <- importImage(path2img)
img |> plot()
path2img <- system.file("images/beads_large2.png", package = 'biopixR')
img <- importImage(path2img)
img |> plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.