Hi Ingo,

There aren't any specific methods, but transforms are just hash refs, so you 
can get at the internals easily.  In your case it sounds like you want 
something like this:

$t=t_linear(s=>3,rot=>25,pre=>10)
p keys %$t
p values %$t
p keys %{$t->{params}}
p values %{$t->{params}}


You'll get the rotation matrix, then, with $t->{params}->{matrix}.  It looks 
like this also folds in the scaling, as there is no separate scaling parameter 
(and in my example the diagonal entries are >1).  See the t_linear docs.

cheers,
Derek

> On Jan 12, 2017, at 7:13 AM, Ingo Schmid <[email protected]> wrote:
> 
> Hi Craig,
> 
> is it possible to access parts of a e.g. linear transformation? I have
> defined a map from world to pixel coordinates (or vice versa). This
> object I store in the header of the image stack.
> 
> In some cases now, I would like to access parts of the transformation,
> like the rotation matrix or the scaling. As far as I can tell there are
> no methods to access these parts of the transform object? I would like
> to avoid having to store these parts separately if possible.
> 
> 
> Ingo
> 
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> pdl-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdl-general
> 

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to