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

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

[Octave-bug-tracker] [bug #44830] image package: imtransform gives diffe


From: H. G.
Subject: [Octave-bug-tracker] [bug #44830] image package: imtransform gives different numbers on simple rotation
Date: Wed, 15 Apr 2015 20:53:39 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0

Follow-up Comment #3, bug #44830 (project octave):

I found some more information on the Matlab behavior here:

http://www.mathworks.com/matlabcentral/answers/67114-what-is-the-difference-between-imwarp-and-imtransform

Two short quotes from this link:

"...imwarp determines and computes the world limits of the input and output
images in terms of the outer extents of the first and last pixel in each
dimension where as imtransform computes input and output boundaries in terms
of the center of the first and last pixel in each dimension."

"I understand that new functions (IMWARP etc..) and the old functions
(IMTRANSFORM) differ in the point of application- for example rotation. In the
new ones it is image center while in the old ones it is top left corner."

I haven't come to any useful conclusions, though...

There is also a link to this:

http://blogs.mathworks.com/steve/2006/08/01/spatial-transformations-controlling-the-input-and-output-grids-with-imtransform/

Here I found the suspected value of 0.5 for example:

"imtransform assumes that an M-by-N input image lives in input space inside a
rectangle spanning from 0.5 to M+0.5 horizontally, and from 0.5 to N+0.5
vertically."

@Pantxo: Maybe those explanations and the code examples help you understand
the Matlab behavior of imtransform a bit more...



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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