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
bitdepth
A scalar corresponding to the colorspace the image should
be converted to. Options are 8 and 16, for 8 and 16 bits respectively.