help-octave
[Top][All Lists]
Advanced

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

Octave grayscale image


From: klaus45
Subject: Octave grayscale image
Date: Sat, 17 Mar 2012 04:51:18 -0700 (PDT)

Hi

I have Octave 3.2.4.
I have been doing this for two weeks and still this doesn't work. 

Grayscale values are like this:  places are between 0-255. So 0 is a lowest
and 255 is a highest place.
x=255 is a width of the landscape. and y=255 is a depth. 

I want to create a grayscale image that has above description for a 
landscape, and that has a 200 pixel tall hemisphere in the middle.

Here is my solution:


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

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



But this doesn't work and something is missing; x and y, in the middle. 
I'm not sure about that 64. How can I do this?


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


reply via email to

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