<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Christos-
<br>We have developed an image reader for CT data. (the codes makeVolumeReader.tcl
and makePointsReader.tcl are attached or you can get them online).
We are currently working on the fastest, best way to visualize this data.
We've used vtkVolume16Reader and vtkStructuredPointsReader. You're
welcome to try either. Let us know if you have a better solution.
<p>Janna and Jenny
<br>Sci Institute, University of Utah
<br>balling@sci.utah.edu
<br><A HREF="http://www.sci.utah.edu/~simpson/documentation/annotation/webdocs/">http://www.sci.utah.edu/~simpson/documentation/annotation/webdocs/</A>
<br>
<br>
<br>
<p>anast.jm@pg.com wrote:
<blockquote TYPE=CITE>
<br><font face="sans-serif"><font size=-1>Christos...also make sure your
image data is indeed Short .... you indicated it was only 0-255 so it might
be unsigned_char...this would definitley cause the reader to attempt to
read past the end of the file....john</font></font>
<br>
<p><font face="Courier New"><font size=-1>hi there</font></font>
<p><font face="Courier New"><font size=-1>this follows a previous post:</font></font>
<br><font face="Courier New"><font size=-1>*****</font></font>
<br><font face="Courier New"><font size=-1>i am trying the past couple
of days to volumize a set of raw data files</font></font>
<br><font face="Courier New"><font size=-1>containing medical data</font></font>
<br><font face="Courier New"><font size=-1>the files represent images of</font></font>
<br><font face="Courier New"><font size=-1>size 256x256</font></font>
<br><font face="Courier New"><font size=-1>binary (0-255)</font></font>
<br><font face="Courier New"><font size=-1>spacing 2.5</font></font>
<br><font face="Courier New"><font size=-1>voxel size (x,y) 1.1211</font></font>
<br><font face="Courier New"><font size=-1>(the above data comes from an
independent header file / raw files -> no</font></font>
<br><font face="Courier New"><font size=-1>header)</font></font>
<p><font face="Courier New"><font size=-1>first of all which reader should
i use?</font></font>
<br><font face="Courier New"><font size=-1>vtkImageReader, vtkImageReader2,
vtkBMPReader, ...?</font></font>
<p><font face="Courier New"><font size=-1>if someone has already some code
that does something similar, i would</font></font>
<br><font face="Courier New"><font size=-1>appreciate if he/she could share
it</font></font>
<br><font face="Courier New"><font size=-1>*****</font></font>
<p><font face="Courier New"><font size=-1>I have attempted to write the
module however I there is a problem in the</font></font>
<br><font face="Courier New"><font size=-1>next block of calls:</font></font>
<p><font face="Courier New"><font size=-1>vtkImageReader2 *reader1 = vtkImageReader2::New();</font></font>
<p><font face="Courier New"><font size=-1> reader1->SetFileDimensionality(2);</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetNumberOfScalarComponents(1);</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetFilePrefix("/home/christos/VIVE02/data/countour1/ABDL</font></font>
<br><font face="Courier New"><font size=-1>15436 one contour"); //filenames
are ok</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetFilePattern("%s.l%.2d");
//filenames are ok</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetDataByteOrderToBigEndian();</font></font>
<p><font face="Courier New"><font size=-1>reader1->SetDataScalarTypeToShort();</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetDataExtent(0,245,0,245,0,93);</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetDataSpacing(1.1211,1.1211,2.5);</font></font>
<br><font face="Courier New"><font size=-1> reader1->SetDataOrigin(120.1,
-130.5, -60.5);</font></font>
<br>
<p><font face="Courier New"><font size=-1>The error I am getting in the
console is:</font></font>
<p><font face="Courier New"><font size=-1>_-----------------------------------------------------------------------------------------</font></font>
<br><font face="Courier New"><font size=-1>_</font></font>
<br><font face="Courier New"><font size=-1>_Generic Warning: In /home/bellet/rpm/BUILD/VTK/IO/vtkImageReader2.cxx,</font></font>
<br><font face="Courier New"><font size=-1>line 668</font></font>
<br><font face="Courier New"><font size=-1>File operation failed. row =
140, Read = 492, FilePos = -1</font></font>
<br>
<p><font face="Courier New"><font size=-1>Press Enter to continue!</font></font>
<br><font face="Courier New"><font size=-1>-----------------------------------------------------------------------------------------_</font></font>
<p><font face="Courier New"><font size=-1>I have oppened the some of the
files with a hex editor etc. and they</font></font>
<br><font face="Courier New"><font size=-1>seem ok!</font></font>
<p><font face="Courier New"><font size=-1>_</font></font>
<br><font face="Courier New"><font size=-1>_Any help would be really appreciated!</font></font>
<br><font face="Courier New"><font size=-1>Also if someone has a module
that does the job, I would really be</font></font>
<br><font face="Courier New"><font size=-1>greatful if he/she could message
me!</font></font>
<p><font face="Courier New"><font size=-1>thanks</font></font>
<br><font face="Courier New"><font size=-1>christos</font></font></blockquote>
</html>