I am trying to write a code to convert an 8 bit grayscale image into 7 bit image.
<p>Since 8 bit image have intensity values 0 to 255, I want to convert the intensity values from 0 to 127. How do I map the intensity values in java.   </p>