bugGNU Octave - Bugs: bug #47223, imshow showed upside down img

 
 

bug #47223: imshow showed upside down img

Submitter:  None
Submitted:  Mon 22 Feb 2016 03:44:04 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Afif Hendrawan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.2
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 29 Apr 2016 09:34:02 PM UTC, comment #8: 

Understand that no stable versions have this fix, that includes both 4.0.1 and 4.0.2. Version 4.2.0 will definitely include the fix. A future 4.0.3 version might include a fix, but may not.

Mike Miller <mtmiller>
Group Member
Fri 29 Apr 2016 09:25:03 PM UTC, comment #7: 

Thanks for the confirmation and a possible fix. I think I'll wait until 4.0.1 or newer is support on OS X, and use 4.0.1 in a VM for now.

Ken Mankoff <mankoff>
Fri 29 Apr 2016 08:51:35 PM UTC, comment #6: 

Thanks for the sample image. I can confirm this bug with Octave 4.0.x, but not with the default branch, this has been fixed in the meantime.

Here is a minimal reproducer for this bug in Octave 4.0.x, with graphics toolkit gnuplot, and gnuplot version 5:


graphics_toolkit ("gnuplot");
figure ();
axis ();
set (gca, "ydir", "reverse");


So this actually turns out to be the same as bug #38914, which is about exactly this error with gnuplot version 5. I can't say whether this can be fixed on stable or not, or whether it's worth it, but you could try applying the fix to your Octave build if this is important to you (see http://hg.savannah.gnu.org/hgweb/octave/rev/977853866d69, it's all m-files), or use one of the OpenGL toolkits if possible (I know Apple makes this difficult).

Any other developers want to look at whether this can/should be fixed on the stable branch, if there will even be another stable release? If no response, then this will be closed as a duplicate.

Mike Miller <mtmiller>
Group Member
Fri 29 Apr 2016 08:08:48 PM UTC, comment #5: 

Re-opened, but missing sample image demonstrating the bug. If you could attach the actual image file, as well as a screenshot of the figure showing the error, that would be best.

Mike Miller <mtmiller>
Group Member
Fri 29 Apr 2016 07:53:51 PM UTC, comment #4: 

I'm experiencing this same bug. Requesting re-open. No change seen with "axis ij" or "axis xy". Sample image is attached.

Ken Mankoff <mankoff>
Fri 11 Mar 2016 12:37:40 AM UTC, comment #3: 

No response to request for further information, closing report.

Mike Miller <mtmiller>
Group Member
Mon 22 Feb 2016 03:50:25 PM UTC, comment #2: 

Can you attach the actual 'someImg.png' file so we can test this?

Carnë Draug <carandraug>
Group Member
Mon 22 Feb 2016 03:50:06 PM UTC, comment #1: 

Could you try "axis ij" and "axis xy"? Does one of them solve the problem?

Anonymous
Mon 22 Feb 2016 03:44:04 PM UTC, original submission:  

when I'm using this function


> a = imread('someImg.png')
>imshow(a)


the result of image is upside down, like reflection on X axis.
I'm using cli version of v4.0.0 on OSX 10.11

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #37023:  Screen Shot 2016-04-29 at 16.18.05.png added by mankoff (1MiB - image/png - Screenshot of session + displayed image (PNG), and the image itself (TIF))
file #37024:  flipped.tif added by mankoff (2MiB - image/tiff - Screenshot of session + displayed image (PNG), and the image itself (TIF))
file #36426:  Screen Shot 2016-02-22 at 10.35.21 PM.png added by None (198KiB - image/png - upside down image)

 

Carbon-Copy List
  • -email is unavailable- added by mankoff (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated 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 16 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-17 mtmiller Open/ClosedOpen Closed
    2016-04-29 mtmiller Dependencies- Depends on bugs #38914
    2016-04-29 mtmiller CategoryOctave Function Plotting with gnuplot
        Priority5 - Normal 3 - Low
        StatusWorks For Me Duplicate
        Release4.0.0 4.0.2
        Operating SystemMac OS Any
    2016-04-29 mankoff Attached File- Added Screen Shot 2016-04-29 at 16.18.05.png, #37023
        Attached File- Added flipped.tif, #37024
    2016-04-29 mtmiller Open/ClosedClosed Open
    2016-04-29 mtmiller Dependencies- bugs #47808 is dependent
    2016-03-11 mtmiller StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2016-02-22 mtmiller Item GroupNone Incorrect Result
        StatusNone Need Info
    2016-02-22 None Attached File- Added Screen Shot 2016-02-22 at 10.35.21 PM.png, #36426

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code