I have an image that captures 8 bits. I want to convert 8-bit values ββto 16 bits. I used the following
short temp16 = (short)val[i] << 8 ;
where val is an array of 8 bit samples.
The above statement causes noise. Can anyone suggest a method for converting from 8 to 16 bits?
source share