help-octave
[Top][All Lists]
Advanced

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

Re: Reading image matrix (rgb) into oct file and return image matrix (rg


From: James Sherman Jr.
Subject: Re: Reading image matrix (rgb) into oct file and return image matrix (rgb)
Date: Fri, 6 Dec 2013 09:53:08 -0500

On Tue, Dec 3, 2013 at 9:38 PM, asanka424 <address@hidden> wrote:
Hello everyone,
I have a new question. I need to get an image matrix (rgb) into my oct file
and do some processing. then return it back. However I couldn't find a way
to do that. Also I need to create a matrix with (rows x cols x depth). How
do I do these tasks.

Your help is highly appreciated

Thanks



--
View this message in context: http://octave.1599824.n4.nabble.com/Reading-image-matrix-rgb-into-oct-file-and-return-image-matrix-rgb-tp4659781.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


Hello,

Do you have the image package installed?  If so, then the functions imread and imwrite are what you want.  To get the image package go here: http://octave.sourceforge.net/packages.php

To create an image, it is simply a 3d array, so something like:
black_im = zeros(rows,cols,3)

would create an image of size rows x cols and a depth of 3, which would be initialized with all zeros.

Hope this helps,

James Sherman

reply via email to

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