Learn R Programming

Rvision (version 0.6.0)

bitdepth: The Bit Depth of an Image

Description

This function returns the bit depth of an Image object, that is the number of bits of information used to encode each channel of each pixel in an image.

Usage

bitdepth(x)

Arguments

x

An Image object.

Value

A character string indicating the bit depth of the image. For now, it can only be one of the following:

  • 8U: an image with a bit depth of 8 unsigned bits.

  • 16U: an image with a bit depth of 16 unsigned bits.

See Also

Image, colorspace.

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
bitdepth(balloon)

# }

Run the code above in your browser using DataLab