bugGNU Octave - Bugs: bug #49050, image function

 
 

bug #49050: image function

Submitted by:  None
Submitted on:  Sat 10 Sep 2016 01:20:37 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: InvalidAssigned to: None
Originator Name: Olivier MassotOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

This works fine for example:

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 10 Sep 2016 03:31:59 PM UTCpantxoOpen/ClosedOpen=>Closed
    Sat 10 Sep 2016 03:31:02 PM UTCpantxoStatusNone=>Invalid

    Back to the top


    Powered by Savane 3.1-cleanup1