imageType {rimage}R Documentation

Get information on color type of imagematrix

Description

This function returns color type ("rgb" or "grey") of a given imagematrix.

Usage

imageType(x)

Arguments

x target image

Value

"rgb" or "grey"

Examples

  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))

[Package rimage version 0.5-7 Index]