Problem with converted TIFF image
Ältere Kommentare anzeigen
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);
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 14 Dez. 2023
Verschoben: DGM
am 12 Mai 2024
1 Stimme
Use im2uint16
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!