[vtkusers] how to read the medical images & display it.

Jeremy Winston winston at cat.rpi.edu
Mon Oct 7 09:10:35 EDT 2002


"Heman, Malve (MED, Contractor)" wrote:
> 
> how to read the medical images & display it.
> send the sorce code for this one.

Malve,
    Here's a Tcl/Tk example that reads a GE Signa format CT scan and
displays it.
    I don't know about readers for other file formats.

HTH,
-Jeremy

----- Tcl/Tk script: -----
vtkGESignaReader ctReader
  ctReader SetFileName (GE Signa file name goes here)
  ctReader Update

vtkImageMapper ctMapper
  ctMapper SetInput [ctReader GetOutput]
vtkActor2D ctActor
  ctActor SetMapper ctMapper

vtkRenderer ren1
vtkRenderWindow renWin
  renWin AddRenderer ren1
  renWin SetSize 512 512

ren1 AddActor2D ctActor

renWin Render

wm withdraw .



More information about the vtkusers mailing list