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

Nicolas DUMONT s991848 at student.ulg.ac.be
Thu, 18 Mar 2004 14:06:12 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_07C1_01C40CF2.2B9ACA00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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 =3D little endian and big endian'?

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

* 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,=20
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=20

frame .top.f1=20

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

**********************

------=_NextPart_000_07C1_01C40CF2.2B9ACA00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello!!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've questions about the data found at =
<A=20
href=3D"ftp://public.kitware.com/pub/itk/Data/MultiFieldMRI/HighField">ft=
p://public.kitware.com/pub/itk/Data/MultiFieldMRI/HighField</A>.</FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* What is the difference between e1 and =
e2 ? e2=20
seems just the same but 'darker' ... ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* what are the resolution of the =
slices? Are they=20
16 bits or 8 bits image files? how to know? &nbsp;what about =
'dataspacing'?=20
what's the difference between 'Data byte order =3D little =
endian&nbsp;and big=20
endian'?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* should&nbsp;I&nbsp;use =
vtkvolume16reader or=20
vtkvolumereader instead of vtkimagereader? what are the differences?=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* I obtained a view of the =
slices&nbsp;using the=20
code below, the result is good but on the sides the=20
images&nbsp;are&nbsp;deformed .... anybody knows why ???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you very much for =
help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nicolas DUMONT, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ULg</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Belgium.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>**********</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>package require vtk<BR>package require=20
vtkinteraction</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkImageReader reader1<BR>reader1=20
SetDataByteOrderToBigEndian<BR>reader1 SetDataExtent 0 255 0 255 1 =
55<BR>reader1=20
SetFilePrefix "e1"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkImageReader reader2<BR>reader2=20
SetDataByteOrderToBigEndian<BR>reader2 SetDataExtent 0 255 0 255 1 =
55<BR>reader2=20
SetFilePrefix "e2"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkImageViewer viewer1<BR>viewer1 =
SetInput [reader1=20
GetOutput]<BR>viewer1 SetZSlice 30<BR>viewer1 SetColorWindow =
3000<BR>viewer1=20
SetColorLevel 1000</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkImageViewer viewer2<BR>viewer2 =
SetInput [reader2=20
GetOutput]<BR>viewer2 SetZSlice 30<BR>viewer2 SetColorWindow =
3000<BR>viewer2=20
SetColorLevel 1000</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Create the GUI<BR>wm withdraw =
.<BR>toplevel .top=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>frame .top.f1 </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkTkImageViewerWidget .top.f1.r1 =
-width 256=20
-height 256 -iv viewer1<BR>vtkTkImageViewerWidget .top.f1.r2 -width 256 =
-height=20
256 -iv viewer2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>button .top.btn&nbsp; -text Quit =
-command=20
exit</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pack .top.f1.r1 .top.f1.r2 \<BR>&nbsp; =
-side left=20
-padx 3 -pady 3 -expand t<BR>pack .top.f1 -fill both -expand t<BR>pack =
.top.btn=20
-fill x</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>::vtk::bind_tk_imageviewer_widget=20
.top.f1.r1<BR>::vtk::bind_tk_imageviewer_widget .top.f1.r2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>**********************</FONT></DIV></BODY></HTML>

------=_NextPart_000_07C1_01C40CF2.2B9ACA00--