Transform an array into a raster
Mostrar comentarios más antiguos
Hello,
I have a 182x121 array (csv file) that I want to transform into a jpg raster with a cell size of 30x30.
The file doesn't have any reference system so I have no Lat,Lon coordinates.
My array' cells are presenting percentages, if there is a way to put such a threshold to make only above 0.7 cells to appear in the raster, otherwise it is not a problem.
Best regards,
8 comentarios
Jan
el 8 de Mzo. de 2021
Did you import the csv file already? Thenthe input is not a cvs file, but a matrix. I cannot guess, how you want to reduce the 128x121 matrix to 30x30 elements. What is a "jpg raster cell"? What does "array cells present percentages" mean? What are "0.7 cells"? Can you give an example?
YEMY
el 8 de Mzo. de 2021
KALYAN ACHARJYA
el 8 de Mzo. de 2021
All images are matrices (Multi dimentional arrays). Load the file using readmatrix
See the image using
imshow(matrix,[])
If you wish to convert the data type to uint8, use uint8(data) function.
YEMY
el 8 de Mzo. de 2021
Jan
el 8 de Mzo. de 2021
This means, that the actual question is: How to import a CSV file into a matrix?
YEMY
el 8 de Mzo. de 2021
Respuestas (0)
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
