convert an 8 bit image into lower bits
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ghulam
el 5 de Dic. de 2017
Comentada: Walter Roberson
el 9 de Feb. de 2023
Hi, I want to convert an 8bit gray scale image into lower bits. I have loaded the image and divided it by multiple numbers to downsize its number of bits, but the problem is that the result is not presenting the true form of White color, and the white color is removed with downsizing. Can you please tell me what is the correct method of downsizing the bits of an image. Regards

8 comentarios
Steven Lord
el 9 de Feb. de 2023
IN = uint8(0:32:255);
result = [IN; IN/128;
idivide(IN, 128, 'fix');
idivide(IN, 128, 'floor');
idivide(IN, 128, 'ceil');
idivide(IN, 128, 'round')]
Respuesta aceptada
Walter Roberson
el 5 de Dic. de 2017
img8 = imread('cameraman.tif');
im4 = im8 ./ 16;
image(im4);
colormap(gray(16));
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!