[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating picture X*Y pixel by pixel
From: |
Massimiliano Minella |
Subject: |
Re: Creating picture X*Y pixel by pixel |
Date: |
Mon, 9 Aug 2010 05:49:39 -0700 (PDT) |
ZWD wrote:
>
> Hello,
>
> I want to create a picture e.g. 640x480 and want to be able to change the
> color of each pixel.
> So I want to create a picture pixel by pixel(and being able to say pixel
> on 235x198 has the color grey) and save it as a .jpg
>
> Im a beginner in octave so any help would be great
>
>
> Thanks
> ZWD
>
You can create a .jpg picture with "imwrite"
> imwrite(A, "foo.jpg")
Create the image "foo.jpg" described by A, where A is a matrix m x n x 3 (in
your case 640x480x3) and the third dimension represent the RGB color of your
pixel.
HTH,
Max
--
View this message in context:
http://octave.1599824.n4.nabble.com/Creating-picture-X-Y-pixel-by-pixel-tp2318402p2318457.html
Sent from the Octave - General mailing list archive at Nabble.com.