Convert a 'magick' image to nativeRaster
magick_to_nr(im, dst = NULL)
nr_to_magick(nr)
Arguments
- im
image from the magick
package
- dst
destination nativeRaster
object. If NULL (the default) a
new nativeRaster
will be created If a nativeRaster
is supplied here, it must have the exact dimensions to match the matrix
- nr
nativeRaster
object
Examples
if (FALSE) { # interactive() && requireNamespace("magick", quietly = TRUE)
im <- magick::logo
nr <- magick_to_nr(im)
plot(nr)
}