bugGNU Octave - Bugs: bug #44857, image package: imtransform with...

 
 

bug #44857: image package: imtransform with xdata gives wrong size

Submitter:  Hartmut <hardy>
Submitted:  Thu 16 Apr 2015 06:04:19 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 29 May 2015 04:45:41 PM UTC, comment #2: 

I have pushed the fixes on bug #44830 which also fixes this issue.

Carnë Draug <carandraug>
Group Member
Thu 14 May 2015 01:52:21 PM UTC, comment #1: 

A patch has been submitted in bug #44830 that fixes this issue.

Pantxo Diribarne <pantxo>
Group Member
Thu 16 Apr 2015 06:04:19 PM UTC, original submission:  

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?)

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-29 carandraug Open/ClosedOpen Closed
    2015-05-29 carandraug StatusIn Progress Fixed
    2015-05-14 pantxo StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code