help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Viewing raw images in octave


From: Sengupta Sourav
Subject: Viewing raw images in octave
Date: Wed, 18 Apr 2001 11:48:37 -0700 (PDT)

Hi,

I was trying to read a raw image file in octave i used
the following commands

a=fopen('lenna.raw','r')
k=fread(a,[256,256])

now in the next step if..

1. I type in imshow(k) i get a kind of a mask but
nowhere near to the actual image.

2. If i say image(k,1) i again get a kind of a
perceptual mask but no image.

3. If i say imagesc(k,1) i get the image perfectly,
but its not only laterally inverted, but also rotated
clockwise vertically by 90 degrees !

Can someone plzz suggest to me, how to view the image
correctly, the commands seem to be working perfectly
in matlab !

Regards,

Sourav Sengupta

=====
Sourav Sengupta

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]