Thanks Tobias, But these changes did not fix my problem. What did fix my problem is a one pixel shift in my world position. In my steps:
sliceGeometry->IndexToWorld( sliceIndex, worldPoint); volumeGeometry->WorldToIndex( worldPoint, volumeIndex); volume->SetPixel( volumeIndex, sliceIndexPixelValue ); I add an offset for the worldPoint of: sliceGeometry->IndexToWorld( (1,1,1) ) - sliceGeometry->GetOrigin() Not too sure why it works but it fixes my problem. Thanks for your help. Yves -----Original Message----- From: Schwarz Tobias [mailto:[email protected]] Sent: viernes, 19 de febrero de 2010 12:59 To: Yves Martelli Cc: [email protected] Subject: AW: [mitk-users] Geometry problem with mitk 0.12 Hi Yves, hopefully you mean 20089 and not 10089, otherwise this would be quite an old version. Anyway, please try an SVN update of the classes: - mitk::Geometry3D - mitk::Geometry2D - mitk::PlaneGeometry - mitk::AbstractTransformGeometry (in each case the .h and .cpp file). They should be all located in the mitk/Core/Code/DataManagement folder, I guess. There have been some recent bug fixes in the 2D geometries coordinate system handling. Hope this solves your problem, Tobias ________________________________________ Von: Yves Martelli [[email protected]] Gesendet: Freitag, 19. Februar 2010 12:44 An: Schwarz Tobias Cc: [email protected] Betreff: RE: [mitk-users] Geometry problem with mitk 0.12 Sorry Tobias, I made a mistake, I'm not using MITK 0.12, but a SVN revision (10089) from 09/11/2009. With ITK 3.16. Yves -----Original Message----- From: Schwarz Tobias [mailto:[email protected]] Sent: viernes, 19 de febrero de 2010 11:46 To: Yves Martelli Cc: [email protected] Subject: Re: [mitk-users] Geometry problem with mitk 0.12 Dear Yves, yes, this sounds like a problem coming from the coordinate system changes in ITK and MITK. But, these changes were made in MITK later then the 0.12 Release, so MITK 0.9 and 0.12 should be compatible. Do you also have updated your ITK Version, to 3.16? You could also try the SVN version of MITK, everything should be correct there in terms of geometries (not sure about release 0.14). In any way, a shift of half a voxel spacing in x,y, and z direction should correct the problem also. Best regards, Tobias ------------------------------------------------------------ Tobias Schwarz DKFZ German Cancer Research Center (Deutsches Krebsforschungszentrum) Member of the Helmholtz Association Division of Medical & Biological Informatics E130 Im Neuenheimer Feld 280 D-69120 Heidelberg Phone: 49-(0)6221-42-2353 Fax: 49-(0)6221-42-2345 E-Mail: [email protected]<mailto:[email protected]> Web: www.dkfz.de<http://www.dkfz.de> Confidentiality Note: This message is intended only for the use of the named recipient(s) and may obtain confidential and/or privileged information. If you are not the intended recipient, please contact the sender and delete the message. Any unauthorized use of the information contained in this message is prohibited. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
