Re: [Gdcm2] vtkGDCMImageReader with vtkImageViewer2 and vtkImagePlaneWidget
Cross-platform DICOM implementation
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2010-02-23 22:11:33
|
Lars, 2010/2/23 Lars Matthäus <lar...@we...>: > Hi Mathieu, > > Do you mean it's working now or has ever been working as expected? (Did > you commit a fix or not? I don't understand your link.) I mean it has always been working. The only recent fix I did to vtkGDCMImageReader was because the vtkatrix4x4 was bogus (the z component should be filled using the cross product of the 2 first cosine directions vectors). Please get gdcm from trunk, and compile gdcmreslice. It will display an orientation widget, which shows up properly on the image you sent (a simple AXIAL). > Maybe I don't understand how to connect gdcm and vtk properly, but > Ashish and me both had the problem that the vtkGDCMImageReader gave a > flipped image compared to the vtkDICOMImageReader. As I tried to explain > in my posts some months ago, I believe this is due to different > coordinate systems (x,y axes) leading to different z-direction in which > to append the image slices. Using reader->FileLowerLeftOn ? > I send you an example and some calculations some time ago; could you > maybe have a look at them again and tell me if and where I'm wrong? The only thing you sent is a single 2d slice, which as I said does properly shows up properly. Please try gcmreslice. 2cts -- Mathieu |