bugGNU Octave - Bugs: bug #56571, Images bigger than around 50M...

 
 

bug #56571: Images bigger than around 50M pixels in size do not display with imshow

Submitter:  None
Submitted:  Mon 01 Jul 2019 03:07:23 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  3 - Low Item Group:  Performance
Status:  Need Info Assigned to:  None
Originator Name:  Mike Wilsher Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Jan 2020 09:36:45 PM UTC, comment #3: 

FWIW, I get no warning message with the example code (with Octave 5 or 6), I just get a very slowly responding system and an empty figure window (on Debian). In my case, it looks like the OpenGL driver says that it can support the requested size, but it never actually renders anything.

Unclear to me whether this is something that can be addressed with more automatic checks, warning messages, documentation, or can't be addressed.

Mike Miller <mtmiller>
Group Member
Tue 09 Jul 2019 10:15:14 AM UTC, comment #2: 

Hi
Thanks for the reply.
Certainly no error message on current 5.1.0 release.

I have worked round things by scaling down the image, finding the location points needed then scaling these back up.

A fix would be great in the future.

Many Thanks
Mike

Mike Wilsher <mwilsher>
Wed 03 Jul 2019 06:30:49 AM UTC, comment #1: 

What I get on Windows 7 with a recently built dev Octave 6.0.0)) is:

>> img_data = uint8(randn(6000, 8400)*255);
>> figure(); imshow(img_data)
>> warning: opengl_texture::create: the opengl library in use doesn't support images with either dimension larger than 8192. Not rendering.


So it doesn't look like a bug but the error message could be more clearly displayed in your case.
I have no time now to check whether this size limit is documented somewhere, if not it would be a doco error. I'll leave it to other devs here to adapt the title & maybe status in that case.

(FTR, I make my crossbuilds using the --no-system-opengl configure option. Or what is is exactly called as I'm on Windows now so can't check)

Philip Nienhuis <philipnienhuis>
Group Member
Mon 01 Jul 2019 03:07:23 PM UTC, original submission:  

There was an original bug on this bug #48764 which now works in the current version. But with a bigger image you still get a blank figure, image not displayed and no error messages.

Octave 5.1.0 and image 2.10.0 package

It seems to be the x,y pixel size that is an issue it is not affected by mono or rgb images.

In its simplest form
img_data = uint8(randn(6000, 8400)*255);
figure(); imshow(img_data);

Just displays a blank figure, although the pixel position display is showing correctly or bigger in x or y (See fail image attached)

but
img_data = uint8(randn(6000, 8399)*255);
or
img_data = uint8(randn(8399, 6000)*255);
or smaller work fine.
(see pass image attached)

I don't think it makes a difference but it is on Windows 10 Pro 64bit i7 with 16GB memory latest download of everything (see splash screen attached)

Any insight very much appreciated


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47152:  fail.jpg added by None (166KiB - image/jpeg)
file #47153:  pass.jpg added by None (283KiB - image/jpeg)
file #47154:  splash.jpg added by None (95KiB - image/jpeg)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mwilsher (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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-21 pantxo Dependencies- bugs #60428 is dependent
    2020-01-31 mtmiller Release5.1.0 dev
    2020-01-31 mtmiller CategoryOctave Package Plotting with OpenGL
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupIncorrect Result Performance
        StatusNone Need Info
    2019-07-01 None Attached File- Added fail.jpg, #47152
        Attached File- Added pass.jpg, #47153
        Attached File- Added splash.jpg, #47154

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code