Bytes Function This function pushes the input image into a different bit-depth resolution. The bit-depth is counted in bytes-per-channel. You can view an image's current bit-depth either by looking at the title bar of a Viewer, or by looking at the output of a shake -info on the command line. 10-bit Cineon files are automatically pushed to 16-bit when being read by Shake. Note that you never have to force images of two different bit-depths to conform when you composite them together; Shake automatically pushes the lower bit-depth image up to the higher bit-depth.
image Bytes( image, int outBytes );
image = Bytes( image, outBytes );
shake -bytes outBytes Examples shake lisa.iff -bytes 1 shake lisa.iff -bytes 2 shake lisa.iff -bytes 4 These commands convert the image to 8, 16, and 32 (float) bits, respectively. |