powered by
This function returns the color space of an Image object, that is the range of colors of an image.
Image
colorspace(x)
An Image object.
A character string indicating the color space of the image. For now, it can only be one of the following:
BGR: an image with 3 channels, Blue, Green, and Red.
BGRA: an image with 3 channels, Blue, Green, Red, and Alpha (transparency).
GRAY: a grayscale image (1 channel only).
Image, bitdepth.
bitdepth
# NOT RUN { balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision")) colorspace(balloon) # }
Run the code above in your browser using DataLab