0

I would like to convert a 16 bit grayscale image to 8 bit, where the lowest value of the 16 bit image becomes 0, and the highest becomes 255

As far I can see, I can call vips-hist-norm, which will map it across the full 16 bit range.

However its unclear to me how I can then convert to 8 bit.

Red Riding Hood
  • 1,932
  • 1
  • 17
  • 36

1 Answers1

0

vips-scale will perform linear mapping of current type to uchar type.

Red Riding Hood
  • 1,932
  • 1
  • 17
  • 36