[vtkusers] MR-high field data e1.* - e2.* ?

Nicolas DUMONT s991848 at student.ulg.ac.be
Thu Mar 18 08:06:12 EST 2004


Hello!!!!

I've questions about the data found at ftp://public.kitware.com/pub/itk/Data/MultiFieldMRI/HighField.

* What is the difference between e1 and e2 ? e2 seems just the same but 'darker' ... ?

* what are the resolution of the slices? Are they 16 bits or 8 bits image files? how to know?  what about 'dataspacing'? what's the difference between 'Data byte order = little endian and big endian'?

* should I use vtkvolume16reader or vtkvolumereader instead of vtkimagereader? what are the differences? 

* I obtained a view of the slices using the code below, the result is good but on the sides the images are deformed .... anybody knows why ???

Thank you very much for help,
Nicolas DUMONT, 
ULg
Belgium.


**********

package require vtk
package require vtkinteraction

vtkImageReader reader1
reader1 SetDataByteOrderToBigEndian
reader1 SetDataExtent 0 255 0 255 1 55
reader1 SetFilePrefix "e1"

vtkImageReader reader2
reader2 SetDataByteOrderToBigEndian
reader2 SetDataExtent 0 255 0 255 1 55
reader2 SetFilePrefix "e2"

vtkImageViewer viewer1
viewer1 SetInput [reader1 GetOutput]
viewer1 SetZSlice 30
viewer1 SetColorWindow 3000
viewer1 SetColorLevel 1000

vtkImageViewer viewer2
viewer2 SetInput [reader2 GetOutput]
viewer2 SetZSlice 30
viewer2 SetColorWindow 3000
viewer2 SetColorLevel 1000

# Create the GUI
wm withdraw .
toplevel .top 

frame .top.f1 

vtkTkImageViewerWidget .top.f1.r1 -width 256 -height 256 -iv viewer1
vtkTkImageViewerWidget .top.f1.r2 -width 256 -height 256 -iv viewer2

button .top.btn  -text Quit -command exit

pack .top.f1.r1 .top.f1.r2 \
  -side left -padx 3 -pady 3 -expand t
pack .top.f1 -fill both -expand t
pack .top.btn -fill x

::vtk::bind_tk_imageviewer_widget .top.f1.r1
::vtk::bind_tk_imageviewer_widget .top.f1.r2

**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040318/ed02d2f4/attachment.htm>


More information about the vtkusers mailing list