readQOI {qoi} | R Documentation |
Read an QOI image into a RGB(A) raster array
readQOI(qoi_image_path)
qoi_image_path |
character (required): Path to a stored qoi-image |
A matrix with integer (0-255) RGB(A) values with dimensions height x width x channels. Until now 3 (RGB) and 4 (RGBA) channels are integrated in the specification. If the decoding went wrong the returned value is NULL.
Johannes Friedrich
## (1) Read RGBA values from file
path <- system.file("extdata", "Rlogo.qoi", package="qoi")
rlogo_qoi <- readQOI(path)
dim(rlogo_qoi)
## (2) plot them
plot.new()