imageType {rimage} | R Documentation |
This function returns color type ("rgb" or "grey") of a given imagematrix.
imageType(x)
x |
target image |
"rgb" or "grey"
x <- read.jpeg(system.file("data", "cat.jpg", package="rimage")) cat("Image Type", imageType(x)) x.grey <- rgb2grey(x) cat("Image Type", imageType(x.grey))