Section: C Library Functions (3)Updated: 06 May 2006Local indexUp
im_msb, im_msb_band - Convert to uchar by discarding bits
#include <vips/vips.h>int im_msb( IMAGE *in, IMAGE *out ); int im_msb_band( IMAGE *in, IMAGE *out, int band );
converts char, short, or int images (including LABQ coded ones) into unsigned
char images, very quickly, by discarding the lower order bits. Once scaled to
char, signed values are converted to unsigned by adding 128.