Problem with converted TIFF image
Mostrar comentarios más antiguos
I converted a png to tiff unsigned int16. The image resulting is completely black.
This a apart of my code:
% Convert to unsigned 16-bit integer
img_uint16 = uint16(double(img) / double(intmax('uint16')) * 65535);
% Save the image as TIFF
tiffPath = fullfile(subfolderPath, [currentImage(1:end-4), '_converted.tif']);
imwrite(img_uint16, tiffPath);
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 14 de Dic. de 2023
Movida: DGM
el 12 de Mayo de 2024
1 voto
Use im2uint16
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!