Manipulate and share raster images in R. Original code by Duccio Rocchini, Giovanni Nocera, Ludovico Chieffallo, and Elisa Thouverai.
Data to be uploaded can be seen here
Note How to import data without im.import()
library(terra)
mato <- system.file("images/matogrosso_ast_2006209_lrg.jpg", package="imageRy")
mato <- rast(mato)
plot(mato)