Learn R Programming

Rvision (version 0.3.3)

changeBitDepth: Convert image bit depth

Description

This function takes an Image object and modifies its bit depth (e.g. from 16 bits to 8 bits).

Usage

changeBitDepth(image, bitdepth)

Arguments

image

An Image object.

bitdepth

A scalar corresponding to the colorspace the image should be converted to. Options are 8 and 16, for 8 and 16 bits respectively.

Value

An Image object.

See Also

Image

Examples

Run this code
# NOT RUN {
# TODO

# }

Run the code above in your browser using DataLab