|
From: | Fausto Arinos de A. Barbuto |
Subject: | Re: Surfaces & pictures |
Date: | Mon, 18 May 2015 20:42:00 -0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 18-05-2015 05:32, Helios de Rosario wrote:
I think we do, if I understood Faustino's question correctly. Say we have this 50x50 RGB image (a cyan cross): img = ones(50,50,3); img(1:51:50^2) = 0; img(50:49:50^2) = 0; It can be projected onto a 50x50 surface just like this: surf(sombrero(50), img) You can use "imread" to read the image from the file into a matrix.
Thanks, but it did not work. I forgot to say I'm using Octave 3.8.1 on a Ubuntu 14.04-64 installation. The list of packages I have using are: bim *| 1.1.3 | /usr/share/octave/packages/bim-1.1.3 dataframe | 1.1.0 | /home/fausto/octave/dataframe-1.1.0 econometrics | 1.1.1 | /home/fausto/octave/econometrics-1.1.1 financial | 0.4.0 | /home/fausto/octave/financial-0.4.0 fpl *| 1.3.4 | /usr/share/octave/packages/fpl-1.3.4 general *| 1.3.4 | /usr/share/octave/packages/general-1.3.4 geometry *| 1.7.0 | /usr/share/octave/packages/geometry-1.7.0 io *| 2.0.2 | /usr/share/octave/packages/io-2.0.2 linear-algebra | 2.2.1 | /home/fausto/octave/linear-algebra-2.2.1 miscellaneous *| 1.2.0 | /usr/share/octave/packages/miscellaneous-1.2.0 missing-functions *| 1.0.2 | /usr/share/octave/packages/missing-functions-1.0.2 msh *| 1.0.6 | /usr/share/octave/packages/msh-1.0.6 odebvp | 1.0.6 | /home/fausto/octave/odebvp-1.0.6 odepkg *| 0.8.4 | /usr/share/octave/packages/odepkg-0.8.4 optim | 1.4.0 | /home/fausto/octave/optim-1.4.0 parallel | 2.2.0 | /home/fausto/octave/parallel-2.2.0 plot *| 1.1.0 | /usr/share/octave/packages/plot-1.1.0 splines *| 1.2.6 | /usr/share/octave/packages/splines-1.2.6 struct | 1.0.10 | /home/fausto/octave/struct-1.0.10 Fausto
[Prev in Thread] | Current Thread | [Next in Thread] |