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

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

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO