imageType: Get information on color type of imagematrix

Description Usage Arguments Value Examples

View source: R/imagematrix.R

Description

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

Usage

1

Arguments

x

target image

Value

"rgb" or "grey"

Examples

1
2
3
4
5
6
7
8
## Not run: 
  x <- read.jpeg(system.file("extdata", "Rlogo.jpg", package="ripa"))
  cat("Image Type", imageType(x))

  x.grey <- rgb2grey(x)
  cat("Image Type", imageType(x.grey))

## End(Not run)

ripa documentation built on May 29, 2017, 5:39 p.m.

Related to imageType in ripa...