<html><head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
</head>
<body><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid"><SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 13px; COLOR: black; FONT-FAMILY: Arial; font-decoration: none"></FONT></SPAN>
<P>Thanks Dominik for answer,<BR><BR>do you know how to use this DICOM reader in VTK? I don't need ImageJ if there is easier way.&nbsp; I am creating the model with the code from the example:<BR><BR>&nbsp;<EM>vtkVolume16Reader v16 = new vtkVolume16Reader();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; v16.SetDataDimensions(512, 512);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; v16.SetDataByteOrderToLittleEndian();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <STRONG>v16.SetFilePrefix(VtkUtil.getVtkDataRoot() + "/bwImages/bw");<BR></STRONG>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; v16.SetImageRange(1, 91);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; v16.SetDataSpacing(0.782*25.4, 0.782*25.4, 1.0);</EM></P>
<P><EM></EM>&nbsp;</P>
<P>Can I specify in&nbsp;SetFilePrefix exactly the folder with the DICOM images or should I use some function to convert&nbsp;them before using?</P>
<P>&nbsp;</P>
<P>thanks in advance</P>
<P>&nbsp;</P>
<P>Bartek&nbsp;</P>
<P><BR>---- Wiadomość Oryginalna ----<BR>Od: Dominik Szczerba <DOMI@VISION.EE.ETHZ.CH><BR>Do: Bartlomiej Wilkowski <WILKU_83@O2.PL><BR>Kopia do: vtkusers@vtk.org<BR>Data: Wed, 18 Oct 2006 15:46:11 +0200<BR>Temat: Re: [vtkusers] creating 3d model from set of images<BR><BR>&gt; There is a dedicated DICOM reader in VTK.<BR>&gt; If you want to convert using ImageJ pay attention to endianness.<BR>&gt; The whole story works for sure.<BR>&gt; bye<BR>&gt; Dominik<BR>&gt; <BR>&gt; Bartlomiej Wilkowski wrote:<BR>&gt; &gt; Hello everybody.<BR>&gt; &gt; <BR>&gt; &gt; I am making a 3d editor for images of the magnetic resonanse. I have a set of 93 images (DICOM) lateral view (cuts) through the patient's corp and I wanted to use vtk to create the interactive 3d model of them.<BR>&gt; &gt; <BR>&gt; &gt; I saw the examples (Medical1 - Medical3) and tried to change in the code only the path to mine images , data spacing and dimensions. I can't see unfortunately any model then.<BR>&gt; &gt; <BR>&gt; &gt; As I am working in Java, I used ImageJ to convert the images to other formats: RAW, JPEG, bitmaps but it is not working. Do anybody of you has any idea what can be wrong? Maybe I should change sth more in the code. I am a total begginer in vtk that's why I am asking,<BR>&gt; &gt; <BR>&gt; &gt; thanks!<BR>&gt; &gt; <BR>&gt; &gt; Bartek <BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; This is the private VTK discussion list. <BR>&gt; &gt; Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<BR>&gt; <BR>&gt; -- <BR>&gt; Dominik Szczerba, Ph.D.<BR>&gt; Computer Vision Lab, ETH<BR>&gt; http://www.vision.ee.ethz.ch/~domi<BR>&gt; <BR></P>
<STYLE>BODY {font-size:10pt;font-family:arial,sans-serif; background} P {margin:0px;}</STYLE>
</BLOCKQUOTE><BR>
<STYLE>BODY {font-size:10pt;font-family:arial,sans-serif; background} P {margin:0px;}</STYLE></body></html>