help-octave
[Top][All Lists]
Advanced

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

Re: Octave grayscale image


From: klaus45
Subject: Re: Octave grayscale image
Date: Sat, 17 Mar 2012 06:38:13 -0700 (PDT)

Thanks. 

I tried this:

a =  (200*rand(64));  
figure(1), image(a), colormap(gray)
title('newpicture')
imwrite(uint8(a),"testing.jpg") 

b = imread(testing.jpg);
figure(2), image(b), colormap(gray)
title('picture is loaded') 

- Good, it worked! I got a grayscale image! 

grayscale values should be: 0 is a lowest place and 255 is a highest.
x=255 is a width of the landscape. y=255 is a depth.

Grayscale image should have that description above for a
landscape that has a 200 pixel tall hemisphere in the middle. 

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Octave-grayscale-image-tp4480438p4480585.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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