How can I read a .ras file?

Réponses (1)

Stephen23
Stephen23 le 23 Juin 2016
Modifié(e) : Stephen23 le 23 Juin 2016

0 votes

Just use the inbuilt imread function, as it supports the SUN Raster file format.
The exact supported .ras file formats are described in detail.
So you simply need to do this:
A = imread(filename)

2 commentaires

Omim
Omim le 23 Juin 2016
I have tried doing this, but Matlab omits some values. The first pixels of the image are 0.
Stephen23
Stephen23 le 23 Juin 2016
@Omim: please edit your question and upload the image using the paperclip button.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Question posée :

le 23 Juin 2016

Commenté :

le 23 Juin 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by