[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44831] image package: imrotate - different di
From: |
H. G. |
Subject: |
[Octave-bug-tracker] [bug #44831] image package: imrotate - different dimensions of output matrix |
Date: |
Tue, 14 Apr 2015 11:29:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
URL:
<http://savannah.gnu.org/bugs/?44831>
Summary: image package: imrotate - different dimensions of
output matrix
Project: GNU Octave
Submitted by: hardy
Submitted on: Di 14 Apr 2015 11:29:04 GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Any
_______________________________________________________
Details:
Here is a simple script to show the behavior:
clear;
pkg load image;
M = [0 1 0; 0 1 0; 0 1 0];
imrot = imrotate(M, -45, 'nearest' , 'loose', 0)
The result of current Octave (3.8.2) and the imrotate function from the image
package (2.2.2 or 2.4.0) gives the following result with matrix size 4-by-4:
0 0 0 0
0 0 1 0
0 1 0 0
0 0 0 0
Matlab gives the following result, which has a different size of the output of
5-by-5:
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
0 0 0 0 0
Both do use the same (default) type of interpolation method (nearest) and the
same extrapolation value (0). Those two values are only explicitly given in my
example script to work around bug #44794 for image-2.2.2.
Nevertheless the resulting matrix differs in size :(
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44831>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44831] image package: imrotate - different dimensions of output matrix,
H. G. <=