Hi,

thank you for the report. Indeed this is a bug. You seem to be the first to initialize an mitk::Image with a vtkImageData with non-zero origin (origin !=(0,0,0)).

I have added the problem to the bugtracker (see http://bugs.mitk.org, bug id is 4734).

We will fix the problem soon. To do it yourself, add the following line after the comment "// re-initialize SlicedGeometry3D" to mitkImage.cpp:
slicedGeometry->SetOrigin(origin);

Ivo

On 15.07.2010 08:30, Lodron, Gerald wrote:
Ok, i solved the rendering problem with mitk::Surface (i made Verts instead of 
Polys, lol).
But i cannot explain me the offset between my image and my segmentation, has anyone an idea?
------------------------------------------------------------------------
*Von:* Lodron, Gerald [mailto:[email protected]]
*Gesendet:* Dienstag, 13. Juli 2010 19:05
*An:* '[email protected]'
*Betreff:* [mitk-users] Bug with mitk::Image::Initialize(vtkImageData)?

Hi
I have an vtkImageData and a corresponding segmentation (vtkPolyData) which i want to display with mitk. I use mitk::Image::Initialize(vtkImageData) to get a mitk image from vtk and mitk::Surface to convert the segmentation.
My problem:
my vtkimage has Origin (-350,-358.203, -1363.5) and the mitk::Image has an origin at (-478.45, -489,664, -2727, from Details View in AppExt->DataManager)
The Spacing (1.367, 1.367, 2) was set correctly
The problem is that when i display both they were not registered (but in my own VTK visualization they were registered)...
Any suggestions?
Another strange behaviour is that my mitk::Surface is only displayed in the 3D Widget, not in the 2D Slices. Can anyone say me why?


--
----------------------------------------------------------------------
Dr. Ivo Wolf, Dipl.-Phys.               Phone:  (+49) 6221/42-2327
Deutsches Krebsforschungszentrum        Fax:    (+49) 6221/42-2345
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280                 email: [email protected]
D-69120 Heidelberg, Germany http://mbi.dkfz-heidelberg.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.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to