bitdepth: The Bit Depth of an Image

View source: R/ImageClass.R

bitdepthR Documentation

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.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, colorspace.

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
bitdepth(balloon)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.