Re: [ITK-users] Rotation of anisotropic 3D image
g2 <[email protected]> Wed, 13 Sep 2017 04:16:44 -0700 (MST)
| Newsgroups | gmane.comp.lib.itk.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Francois, Dženan, Francois Budin-3 wrote > I think you are missing a step in your computation: > 1) You need to trnasform your point before rotation to find its position > after transformation. You can directly use the affine transform for that: > affineTransform->TransformPoint(my_point) > 2) Compute the index of the transformed point: > filter->GetOutput()->TransformPhysicalPointToIndex(Pp, Pp_pix); > > I think you forgot to compute 1) I did not use the TransformPoint function but I did transform the points using my own matrix multiplication method before using transformPhysicalPointToIndex. And it gives the same results. While cleaning up the code I discovered that the input 3D point I was getting were actually not in proper physical space, they did not take image origin into account, only pixel position * spacing. I'll try to see the implication of that in my code and I'll come back to you. Cheers, A. -- Sent from: http://itk-users.7.n7.nabble.com/ _____________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://www.kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/insight-users