Hi Andreas,

Thank you for your answer.
I got the transformation tMatrix with IndexToWorldTransform of the
movingImage node in debug mode after clicking on the button 'save project'.
However, I figured out that the rotation matrix is transposed- is it true?
The translation vector in that matrix does not reproduce MITK's saved image
and I'm wondering how should I find that translation.
You've suggested with offset/origin, do you mean that from the same point
that I extract tMatrix- to find the offset/origin (with getOffset etc.) and
this is the right translation of the transformation matrix?
Actually I tried to do that and didn't succeed to reproduce MITK's saved
moving image -
I think that a further calculation is required- am I right?

what do you think?....

Hila

On Tue, Jan 8, 2013 at 9:48 AM, Fetzer, Andreas <[email protected]
> wrote:

> Hi Hila,
>
> where did you get the tMatrix from? E.g. the matrix of the
> IndexToWorldTransform holds usually just the information about the rotation
> of the data object. If you want to get its translation you have to take its
> origin or offset into account. Have you tried setting the origin as well?
>
> Regards
> Andreas
>
> On 07.01.2013, at 15:15, Hila Hiler wrote:
>
> Hi all,
>
> I have a very simple question.
>
> I have a reference image which I views by MITK's GUI -> details ->Offset
> and matrix.
> Now I want to transform another image in order to be aligened with that
> image. So I use this function:
> m_MovingNode->GetData()->GetGeometry()->Compose( tMatrix ); //while
> tMatrix is exactly the transformation matrix with those offset and matrix
> of the reference image
> m_MovingNode->GetData()->Modified();
> then I save the project and view the aligned images.
>
> why does the output image have another translation details?
>
>
> Many Thanks,
> Hila
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012,
> HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
>
> http://p.sf.net/sfu/learnmore_122412_______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to