Saving an Array as a .tiff file
69 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
RB
el 6 de Oct. de 2017
Comentada: RB
el 6 de Oct. de 2017
Hello, I currently have a bunch of arrays that I have created and edited with earlier code. They are 512x512 double arrays that contain either a 1 or a 0 in each location. Currently, I can call on an array and save the array as a .txt file or .csv file. For example: dlmwrite('AnswerArray.txt', array) and csvwrite('AnswerArray.txt', array)
I use these arrays in ImageJ and can open them as images by importing them as text images. However, I am wondering if there is a way to save an array with 1s and 0s as a .tif file. Any help would be greatly appreciated! Thank you!
0 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Oct. de 2017
imwrite( logical(YourMatrix), 'NameOfFile.tiff')
TIFF supports 1 bit data (not all image formats do.)
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!