<font size="2"><font face="verdana,sans-serif">It is not possible to extract the heart perfectly using only intensity values. If you want to show only heart, you would have to segment it first, and then suppress the rest of the thorax (using heart&#39;s binary mask).</font></font> But segmenting the heart is a much larger beast than just displaying it using VTK.<br>

<br>Regards<br><br>2011/11/15 FanShanShan <span dir="ltr">&lt;<a href="mailto:shanfshan@hotmail.com">shanfshan@hotmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div><div dir="ltr">
<p class="MsoNormal" style="text-align:left;line-height:15pt" align="left"><font face="微软雅黑, sans-serif"></font></p><p class="MsoNormal" style="color:rgb(42, 42, 42);text-align:left;line-height:15pt" align="left"><font face="微软雅黑, sans-serif"><a name="133a57e316c7518e_OLE_LINK2"></a></font></p>

<p class="MsoNormal" style="text-align:left;line-height:15.0pt" align="left"><font face="微软雅黑, sans-serif"><a name="133a57e316c7518e_OLE_LINK2"></a><a name="133a57e316c7518e_OLE_LINK1"><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US">Hi,</span></span></a><span><span><span style="font-size:9.0pt;color:#2A2A2A" lang="EN-US"><u></u><u></u></span></span></span></font></p>

<font face="微软雅黑, sans-serif">

<p class="MsoNormal" style="text-align:left;line-height:16.5pt" align="left"><span><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US">I want to display a heat following the example(Medical1
or Medical2) which is described in VTK.  In the example of Medical2 ,I get
that the contour value of skin is 500 and the contour value of bone is 1150,
but I don&#39;t know the contour value of heart, so I tried some numbers, but I
can&#39;t only extract the heart exactly, there is always some bones or  skin
around it. I don&#39;t know whether the method which is used in head in Medical2 is
not suitable for heart extracting, or I don&#39;t get a right contour value of
heart, or the data I used is not good to me?  I get the 4D Cardiac CT data
from </span></span></span><a href="http://pubimage.hcuge.ch:8080/" target="_blank"><span><span><span style="font-size:10.0pt;color:#0068CF" lang="EN-US">http://pubimage.hcuge.ch:8080/</span></span></span><span><span></span></span></a><span><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US">  and I just process one
folder . Please help me.</span></span></span><span><span><span style="font-size:10.0pt" lang="EN-US"><u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left;line-height:16.5pt" align="left"><span><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US"><u></u> <u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left;line-height:16.5pt" align="left"><span><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US">here is my code :<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><a name="133a57e316c7518e_OLE_LINK13"></a><a name="133a57e316c7518e_OLE_LINK14"></a><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include</span></span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;itkImage.h&quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;itkImageSeriesReader.h&quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;itkImageFileWriter.h&quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;itkNumericSeriesFileNames.h&quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;itkImageToVTKImageFilter.h&quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkRenderer.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkRenderWindow.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkRenderWindowInteractor.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkPolyDataMapper.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkActor.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkOutlineFilter.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkCamera.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkProperty.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkPolyDataNormals.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkContourFilter.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkSmartPointer.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">#include </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&lt;vtkStripper.h&gt;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">int main( int argc, char * argv[] )<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">{<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    typedef signed short    PixelType;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  const unsigned int Dimension = 3;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  typedef itk::Image&lt; PixelType, Dimension &gt;  ImageType;<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  typedef itk::ImageSeriesReader&lt; ImageType &gt;
ReaderType;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  ReaderType::Pointer reader = ReaderType::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  const unsigned int first = atoi( argv[2] );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  const unsigned int last  = atoi(
argv[3] );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  typedef itk::NumericSeriesFileNames    NameGeneratorType;<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  NameGeneratorType::Pointer nameGenerator =
NameGeneratorType::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  nameGenerator-&gt;SetSeriesFormat( argv[1] );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  nameGenerator-&gt;SetStartIndex( first );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  nameGenerator-&gt;SetEndIndex( last );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  nameGenerator-&gt;SetIncrementIndex( 1 );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  std::vector&lt;std::string&gt; names =
nameGenerator-&gt;GetFileNames();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u> <u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  std::vector&lt;std::string&gt;::iterator nit;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  for (nit = names.begin();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">       nit != names.end();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">       nit++)<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    {<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    std::cout &lt;&lt; </span></span></span><span><span><span style="font-size:10.0pt;color:#A31515" lang="EN-US">&quot;File: &quot;</span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> &lt;&lt; (*nit).c_str() &lt;&lt;
std::endl;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    }<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  reader-&gt;SetFileNames( names  );<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:green" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  ImageType::Pointer image = reader-&gt;GetOutput();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkRenderer&gt; aRenderer =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkRenderer&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkRenderWindow&gt; renWin =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  renWin-&gt;AddRenderer(aRenderer);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; iren =<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  iren-&gt;SetRenderWindow(renWin);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  typedef itk::ImageToVTKImageFilter&lt;ImageType&gt;
itkVtkConverter;<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    itkVtkConverter::Pointer
conv=itkVtkConverter::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    conv-&gt;SetInput(image);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    conv-&gt;Update();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> </span></span></span><span><span><span style="font-size:10.0pt;color:#2A2A2A" lang="EN-US"><u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkContourFilter&gt;
heartExtractor =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkContourFilter&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    heartExtractor-&gt;SetInput(conv-&gt;GetOutput());<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    heartExtractor-&gt;SetValue(0,60);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    heartExtractor-&gt;Update();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkPolyDataNormals&gt; heartNormals =<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkPolyDataNormals&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heartNormals-&gt;SetInput(heartExtractor-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heartNormals-&gt;SetFeatureAngle(60.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkStripper&gt; heartStripper =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">      vtkSmartPointer&lt;vtkStripper&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heartStripper-&gt;SetInput(heartNormals-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkPolyDataMapper&gt; heartMapper =<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heartMapper-&gt;SetInput(heartStripper-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heartMapper-&gt;ScalarVisibilityOff();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkActor&gt; heart =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkActor&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heart-&gt;SetMapper(skinMapper);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heart-&gt;GetProperty()-&gt;SetDiffuseColor(1, .49, .25);<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heart-&gt;GetProperty()-&gt;SetSpecular(.3);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heart-&gt;GetProperty()-&gt;SetSpecularPower(20);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  heart-&gt;GetProperty()-&gt;SetOpacity(1.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkContourFilter&gt; boneExtractor =<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkContourFilter&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneExtractor-&gt;SetInput(conv-&gt;GetOutput());<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneExtractor-&gt;SetValue(0,300);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkPolyDataNormals&gt; boneNormals =<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkPolyDataNormals&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneNormals-&gt;SetInput(boneExtractor-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneNormals-&gt;SetFeatureAngle(60.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkStripper&gt; boneStripper =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkStripper&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneStripper-&gt;SetInput(boneNormals-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkPolyDataMapper&gt; boneMapper =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneMapper-&gt;SetInput(boneStripper-&gt;GetOutput());<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  boneMapper-&gt;ScalarVisibilityOff();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkActor&gt; bone =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkActor&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  bone-&gt;SetMapper(boneMapper);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  bone-&gt;GetProperty()-&gt;SetDiffuseColor(1, 1, .9412);<u></u><u></u></span></span></span></p>



<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  bone-&gt;GetProperty()-&gt;SetOpacity(0.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkOutlineFilter&gt; outlineData =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkOutlineFilter&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  outlineData-&gt;SetInput(conv-&gt;GetOutput());<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkPolyDataMapper&gt; mapOutline =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  mapOutline-&gt;SetInput(outlineData-&gt;GetOutput());<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkActor&gt; outline =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkActor&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  outline-&gt;SetMapper(mapOutline);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  outline-&gt;GetProperty()-&gt;SetColor(0,0,0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  vtkSmartPointer&lt;vtkCamera&gt; aCamera =<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">    vtkSmartPointer&lt;vtkCamera&gt;::New();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;SetViewUp (0, 0, -1);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;SetPosition (0, 1, 0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;SetFocalPoint (0, 0, 0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;ComputeViewPlaneNormal();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;Azimuth(30.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;Elevation(30.0);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"><u></u> <u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;AddActor(outline);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;AddActor(heart);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;AddActor(bone);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;SetActiveCamera(aCamera);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;ResetCamera ();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aCamera-&gt;Dolly(1.5);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;SetBackground(.2, .3, .4);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  renWin-&gt;SetSize(640, 480);<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  aRenderer-&gt;ResetCameraClippingRange ();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  iren-&gt;Initialize();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  iren-&gt;Start();<u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  <u></u><u></u></span></span></span></p>

<p class="MsoNormal" style="text-align:left" align="left"><span><span><span style="font-size:10.0pt;color:blue" lang="EN-US">  return EXIT_SUCCESS;<u></u><u></u></span></span></span></p>

<span><span><span style="font-size:10.0pt;color:blue" lang="EN-US"> }</span></span></span><p></p><p class="MsoNormal" style="text-align:left;line-height:15pt" align="left"><font color="#0000ff"><br></font></p><p class="MsoNormal" style="text-align:left;line-height:15pt" align="left">

<font color="#0000ff">Regards</font></p><p class="MsoNormal" style="text-align:left;line-height:15pt" align="left"><font color="#0000ff">Sally</font></p></font><p></p>                                               </div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>