octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44857] image package: imtransform with xdata


From: H. G.
Subject: [Octave-bug-tracker] [bug #44857] image package: imtransform with xdata gives wrong size
Date: Thu, 16 Apr 2015 18:04:20 +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/?44857>

                 Summary: image package: imtransform with xdata gives wrong
size
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Do 16 Apr 2015 18:04:19 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 little script to show the behavior:


im = [1 2;3 4];
tmat = [eye(2); 0 0];
T = maketform ('affine', tmat);
im2 = imtransform (im, T, 'xdata', [1 3], 'ydata', [1 3])


In Matlab the resulting image (im2) has 3 rows and 3 columns, as can be seen
in post #10 of bug report #44794. In Octave (3.8.2) with image-2.4.0 the
result has 4 rows and 4 columns.

The Matlab documentation of the function imtransform might be ambigous here.
Starting row number 1 and stopping row number 3 probably should mean that you
want three rows: 1, 2, and 3.

(note: With this simple script the resulting numbers in im2 are different from
the input numbers in im. Even though the transformation should be an identity
transformation. Is this yet another bug or just an ununderstodd behavior by
myself?)




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44857>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]