bugGNU Octave - Bugs: bug #63060, image() handle cannot be set cdata...


bug #63060: image() handle cannot be set cdata with an imread() result

Submitter:  Yu Hongbo <yuhongbo>
Submitted:  Thu 15 Sep 2022 03:13:02 AM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 6.4.0 Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Thu 15 Sep 2022 07:13:38 PM UTC, comment #1: 

It would if you could upload the png file. Both error/warning messages suggest that imread returns unsupported data type. What is is shown after the following commands?

im = imread ('white_background.png');
whos im

Pantxo Diribarne <pantxo>
Project Member
Thu 15 Sep 2022 03:13:02 AM UTC, original submission:  

Both imshow() and set() are failed. Here is my code:

>> im = imread('white_background.png');
>> imshow(im)

error: imshow: TrueColor image must be uint8, uint16, double, or single
error: called from
    imshow at line 114 column 7

>> img = image();
>> set(img, 'cdata', im)
>> warning: opengl_texture::create: invalid image data type, expected double, single, uint8, or uint16

Yu Hongbo <yuhongbo>


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

Attach Files:

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 pantxo (Posted a comment)
  • -email is unavailable- added by yuhongbo (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 project members can vote.





    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-15 pantxo StatusNone Need Info

    Back to the top

    Powered by Savane 3.9