Hi Augustin,
The itk class used in the app are not able to do the first option as it.
However I invite you to take a look to the app code because it is no so simple: we manage the scaling trough a modification of the spacing and we manage also the position of the rotation center (here the center of the image). When you do the affine formula that you indicated the center of the rotation is the left up corner.

Best
Mickaël

Le 25/06/2015 14:23, Agustin Lobo a écrit :
Found my way through option 2.
Still interested on knowing if option 1 is currently possible.
Agus

On Thu, Jun 25, 2015 at 12:31 PM, Agustin Lobo <[email protected]> wrote:
Is there any(otbcli) way of applying a 6-parameters affine transformation?

otbcli_RigidTransformResample allows for including sx, sy, angle, dx, dy
thus in principle I should be able to apply:

X' = sx X cos(alpha) - sy Y sin(alpha) + xo
Y' = sx X sin(alpha) +  sy Y cos(alpha) + yo

but my fit from homologous points results on:
X' = aX - bY + xo
Y' = cX + dY + yo

so I would need either
1. An otbcli accepting the 6 parameters
2. A way to find sx, sy and angle alpha  from a, b, c and d.

Any help appreciated,

Agus

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to