Hi All (and Peter),
Whe I load an anatomy and a .trk file in MITK, they are not aligned.
(They are aligned in FiberNavigator). I tried to use the same affine
transformation in both objects, but I got strange results (at the right
position only in the Axial view, Sagittal and Coronal didn't change,
wtf?) and the 3D view never changed. Calling Modified() didn't change
anything.
fiber->GetGeometry()->SetIndexToWorldTransform(
anat->GetGeometry()->GetIndexToWorldTransform());
// OR
fiber->SetGeometry(anat->GetGeometry());
// OR
fiber->GetGeometry()->SetOrigin(anat->GetGeometry()->GetOrigin());
I started to doubt that the FiberBundleX uses the affine transform. I
don't know which object is supposed to apply the transform, but if it's
the mapper, I know that the PolyDataMapper3D doesn't do that, it reads
raw data and call gl functions, that's all. So, can we apply a transform
to a FiberBundleX? Or must we directly modify the data (create a new
bundle)?
--
Logo Imeka <http://imeka.ca/> Nil Goyette, M.Sc.
www.imeka.ca <http://imeka.ca/>
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users