[Insight-users] DICOM and orientation

Amardeep Singh amar.singh at gmx.de
Tue Jun 30 05:56:50 EDT 2009


Hi

You might have missed Bill Lorensen's answer to your question. Have 
another look:
http://n2.nabble.com/DICOM-and-orientation-td3176010.html#a3176022

Regards
Amardeep

Lic. José M. Rodriguez Bacallao wrote:
> no one?
>
> On 6/29/09, Lic. José M. Rodriguez Bacallao <jmrbcu at gmail.com> wrote:
>   
>> hi folks, I'm reading a dicom image with itk (WrapITK) and visualizing
>> with vtk but, when I try to visualize it, it show inverted in the
>> screen, this is my code to read and visualize the image:
>>
>> image_type = itk.Image[itk.SS, 2]
>>
>> image_type = itk.Image[itk.SS, 2]
>> fr = itk.ImageFileReader[image_type].New()
>> con = itk.ImageToVTKImageFilter[image_type].New()
>>
>> fr.SetFileName('/home/jmrbcu/temp/IM66.dcm')
>> con.SetInput(fr.GetOutput())
>>
>> v = vtk.vtkImageViewer2()
>> ri = vtk.vtkRenderWindowInteractor()
>> v.SetupInteractor(ri)
>> v.SetInput(con.GetOutput())
>>
>> v.Render()
>> v.SetColorWindow(255)
>> v.SetColorLevel(128)
>>
>> ri.Start()
>>
>> --
>> Lic. José M. Rodriguez Bacallao
>> Centro de Biofisica Medica
>> -----------------------------------------------------------------
>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
>> mismo.
>>
>> Recuerda: El arca de Noe fue construida por aficionados, el titanic
>> por profesionales
>> -----------------------------------------------------------------
>>
>>     
>
>
>   


More information about the Insight-users mailing list