<HTML>
Alvina D' Silva wrote:
<BLOCKQUOTE TYPE=CITE>Hi all!
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I did'nt receive any answers, so I thought
I'd repost the questions

<P>&nbsp;&nbsp;&nbsp;&nbsp; Please Help me !!!!

<P>1.&nbsp;&nbsp;&nbsp; I was trying out the examples&nbsp; - "Medical*.cxx"
which use contour filters .
<BR>&nbsp;&nbsp;&nbsp; These filters as well as marching cubes ask the
value range ( 'SetValue' method). While values like
<BR>500(skin extraction) &amp; 1150(bone extraction) work fine for the
sample images, they do not hold good for all.
<BR>Some of my MR images needed values of 30000 for bone extraction !

<P>&nbsp;&nbsp;&nbsp; Is there no limited value range which will hold good
for different sets of images? ( This is essential, since
<BR>users will be asked to input this value ). Or is there any other way
about this&nbsp; (without specifying values ) ?

<P>2. Given a set of Images(x-y), what classes do I use &amp; how do I
use them to obtain the other coordinate axes( viz x-z &amp; y-z )?

<P>3.&nbsp;&nbsp; Is there any way I can increase the speed of execution
(other than decimate)&nbsp; ?&nbsp; I'm on windows NT &amp;
<BR>am using VC++.

<P>4. How do I close the openGL window without closing my main window ?

<P>5. Does vtkImageReader support raw files? (tried to read some bin files
but was unsuccessful)

<P>Would be grateful if someone could help ,
<BR>Alvina
<BR>&nbsp;</BLOCKQUOTE>
I'll take a shot at answering your questions.

<P>&nbsp;1)&nbsp; In general, if the image data doesn't conform to any
standard, you need to pick a value
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to segment your data.&nbsp; This
is frequently done using a histogram.&nbsp; If two materials are
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; represented by two peaks in the
histogram, you can choose the value at the low point
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; between the peaks as the contour
value.&nbsp; Much more sophisticated techniques can be
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used.&nbsp; (If your data is supposed
to conform to some medical standard,&nbsp; I can't answer
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; your question.)

<P>&nbsp; 2)&nbsp; You can use vtkImageReslice.

<P>&nbsp; 3)&nbsp;&nbsp; Be sure to use vtkStripper since most hardware
processes "triangle strips" faster.
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Also,&nbsp; using
vtkProperty with BackfaceCullingOn may help since triangles that
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aren't visible
won't be processed by the rendering hardware.

<P>&nbsp;&nbsp; 4)&nbsp; I don't understand this question.&nbsp; I normally
only have one window.

<P>&nbsp;&nbsp; 5)&nbsp; Yes.&nbsp; e.g.

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
vtkImageReader reader
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetDataExtent 0 999 0 999 0 499
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetDataVOI 100 769 100 869 0 499
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetFilePrefix "0629001/0629001.rec"
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetFilePattern "%s%4.4d.img"
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetDataScalarType $VTK_SHORT

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you
are looking at data with your NT machine which was orginally made on a
non-Intel
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (probably
Unix) machine you'll need to also use

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reader SetDataByteOrderToBigEndian
<BR>&nbsp;

<P>Dave

<P>&nbsp;
<PRE>--&nbsp;
David E Jones
Du Pont Central Research
Experimental Station, Bldg 320
Wilmington, DE 19880-0320</PRE>
&nbsp;</HTML>