[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
3-dimensional array/matrix in oct-file: crashes
From: |
marcimatz |
Subject: |
3-dimensional array/matrix in oct-file: crashes |
Date: |
Wed, 11 Dec 2013 10:37:35 -0800 (PST) |
Hello,
I wish to create an RGB image inside of an oct file, and return it to the
user. I followed instructions here:
http://www.gnu.org/software/octave/doc/interpreter/Matrices-and-Arrays-in-Oct_002dFiles.html
and implemented following code that crashes:
dim_vector dv (3);
dv(0) = resolutionX;
dv(1) = resolutionY;
dv(2) = 3;
Matrix mat(dv);
is that normal? I did exactly as indicated in the previous link.
For a greyscale image, following works fine:
dim_vector dv (2);
dv(0) = resolutionX;
dv(1) = resolutionY;
Matrix mat(dv);
Cheers
--
View this message in context:
http://octave.1599824.n4.nabble.com/3-dimensional-array-matrix-in-oct-file-crashes-tp4660015.html
Sent from the Octave - General mailing list archive at Nabble.com.
- 3-dimensional array/matrix in oct-file: crashes,
marcimatz <=