How can I read a .ras file?

Hi. How can I read an image with .ras extension? Thanks :)

Answers (1)

Stephen23
Stephen23 on 23 Jun 2016
Edited: Stephen23 on 23 Jun 2016
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 Comments

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

Sign in to comment.

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 23 Jun 2016

Commented:

on 23 Jun 2016

Community Treasure Hunt

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

Start Hunting!