bugGNU Octave - Bugs: bug #31241, imrotate bad behaviour with...

 
 

bug #31241: imrotate bad behaviour with "Fourier" parameter

Submitter:  zenko <zenko>
Submitted:  Mon 04 Oct 2010 02:19:00 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Octave Forge Assigned to:  None
Originator Name:  Zenko Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Oct 2010 09:26:11 AM UTC, comment #3: 

Isn't imrotate an Octave Forge image package function?  I think this bug should be reported/discussed on the Octave Forge mailing list and closed here since it is not really a bug in Octave.

John W. Eaton <jwe>
Group administrator
Tue 05 Oct 2010 09:14:56 AM UTC, comment #2: 

Hi again,

I've tried with jpg and png formats and it fails with both of them, I also tried your code and the results are in the attachments, you can see how the borders of the square are blurry, with color images it's worst because it returns an bw image.

The next two attachments are a test with GNU logo.

Please note that if I use any other method such as "bicubic" everything works fine.


zenko <zenko>
Tue 05 Oct 2010 01:44:10 AM UTC, comment #1: 

Can you also post the image used?  I have done a few simple tests like:

zz = zeros(100,100);
zz(40:60,40:60) = 1;
zz2 = imrotate(zz, 45, "Fourier");
imshow(zz2,[])

and everything looks fine.  I would like to take a look at the image you are loading in to see if it is possibly a mix of the Fourier interpolation with JPG artifacts.  Does this occur if the image was loaded from a lossless format?

John Swensen <jpswensen>
Mon 04 Oct 2010 02:19:00 PM UTC, original submission:  

The function imrotate presents a bad behaviour when using "Fourier" parameter.

I've tried the 3.2.4 and 3.3.52 versions and the one that comes with ubuntu 10.04, all of them have the same bug. The following set of instructions cause bad behaviour:

img = imread("myimg.jpg");
imgr = imrotate(img,65,"Fourier");

The rotated image is not properly working, I attach the result as an image.

zenko <zenko>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21620:  badsqar.png added by zenko (4KiB - image/png)
file #21621:  square.png added by zenko (2KiB - image/png)
file #21622:  badlogo.png added by zenko (85KiB - image/png)
file #21623:  logo.jpg added by zenko (17KiB - image/jpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by jpswensen (Posted a comment)
  • -email is unavailable- added by zenko (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-05 jwe StatusNone Octave Forge
        Open/ClosedOpen Closed
    2010-10-05 zenko Attached File- Added badsqar.png, #21620
        Attached File- Added square.png, #21621
        Attached File- Added badlogo.png, #21622
        Attached File- Added logo.jpg, #21623
    2010-10-04 zenko Attached File- Added Screenshot-Untitled Window.png, #21609

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code