bugGNU Octave - Bugs: bug #49050, image function

 
 

bug #49050: image function

Submitter:  None
Submitted:  Sat 10 Sep 2016 01:20:37 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Olivier Massot Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 10 Sep 2016 04:14:34 PM UTC, comment #2: 

This works fine for example:

clear;
A = [10 0; 10 7];
B = [0 0; 9 7];
C = [12 1; 15 7];
colorABC_image=cat(3, A, B, C);
figure; image(colorABC_image);


Hartmut <hardy>
Sat 10 Sep 2016 03:31:02 PM UTC, comment #1: 

Hi,

What you are seeing is not a crash, it is an error, an expected one:
you are trying to use a 2-by-2-by-2 matrix as an image which is not a valid format as stated by the error message. An image can be created using a m-by-n 2D matrix for indexed or grayscale images, or a m-by-n-by-3 array for true color (rgb) images.
See https://www.gnu.org/software/octave/doc/interpreter/Representing-Images.html#Representing-Images

Pantxo Diribarne <pantxo>
Group Member
Sat 10 Sep 2016 01:20:37 PM UTC, original submission:  

Using the following script (Bug_imageFunction.m):

"
clear
A = [10 0; 10 7];
B = [0 0; 10 7];
%Concatenations 2 arrays.
colorAB_image=cat(3, A, B);
figure;image(colorAB_image);
"

I get the following answer:

"

>> Bug_imageFunction


error: invalid value for array property "cdata"
error: called from
    image>__img__ at line 201 column 5
    image at line 119 column 10
    Bug_imageFunction at line 6 column 8

from Octave.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-10 pantxo Open/ClosedOpen Closed
    2016-09-10 pantxo StatusNone Invalid / Not an Octave Bug

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code