How to create MASK from "image.tiff"?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
reyadh Albarakat
el 3 de Mayo de 2016
Comentada: reyadh Albarakat
el 3 de Mayo de 2016
Hi Everybody,
I tried to MASK the shapefile of my study area but the matrix of the MASK is only NaN data. so please I need your help. I have attached the script_MASK.
Thank you in advance.
Reyadh
0 comentarios
Respuesta aceptada
Image Analyst
el 3 de Mayo de 2016
What are the values of your tiff file? It's probably in the range 0-255 so most values will be set to nan because you set all values more than 1 to nan. You might want to set the to nan only if they're outside the range 0-255, or use im2double() to change the range of your image from 0-255 to 0-1.
3 comentarios
Image Analyst
el 3 de Mayo de 2016
If you pass an array into mat2gray() it will scale it to the 0-1 range.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!