bugGNU Octave - Bugs: bug #42143, imrotate: using NA for...

 
 

bug #42143: imrotate: using NA for extrapolated values is not compatible with Matlab behavior

Submitter:  John W. Eaton <jwe>
Submitted:  Fri 18 Apr 2014 04:12:28 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  jwe Open/Closed:  * Closed
Release:  * other Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Apr 2014 02:18:00 PM UTC, comment #4: 

LOL, I must be losing my mind.

John W. Eaton <jwe>
Group administrator
Wed 23 Apr 2014 02:09:05 PM UTC, comment #3: 

This is a duplicate of bug #42168

Carnë Draug <carandraug>
Group Member
Fri 18 Apr 2014 08:09:11 PM UTC, comment #2: 

Matlab's imrotate function doesn't appear to accept the final extrapolation value argument.

John W. Eaton <jwe>
Group administrator
Fri 18 Apr 2014 08:02:28 PM UTC, comment #1: 

This seems just a matter of changing the default value to 0. Does:


imrotate (eye (10), -40, "nearest", "loose", 0)


works as in Matlab?

The only reason I see for this difference would be consistency with interp2/3 but Matlab compatibility would be a priority now.

If you submit a patch for this, could you please also change the similar functions that are also using NA? I can see at least imremap and imperspectivewrap.

Carnë Draug <carandraug>
Group Member
Fri 18 Apr 2014 04:12:28 PM UTC, original submission:  


imrotate (eye (10), -40)


generates a matrix with many NA values.  Matlab is documented to fill/extrapolate with 0.  Perhaps there was a good reason for choosing to use NA instead of 0 for extrapolated values, but I think it would be helpful to be compatible with Matlab by default.

John W. Eaton <jwe>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-28 carandraug Open/ClosedOpen Closed
    2014-04-23 carandraug StatusNone Duplicate
        Dependencies- Depends on bugs #42168
    2014-04-18 jwe Summaryusing NA for extrapolated values is not compatible with Matlab behavior imrotate: using NA for extrapolated values is not compatible with Matlab behavior

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code