<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello<BR>I am new to itk.</DIV>
<DIV>I want to employ HessianRecursiveGaussianImageFilter in my program.<BR>In order to see its result,I modified DicomSeriesReadImageWrite2.cxx. Wanna to result its output to a dicom file.<BR>But it failed with <BR>&nbsp; itk::ExceptionObject (013FDEAC)<BR>&nbsp; Location: "void __thiscall itk::GDCMImageIO::Write(const void *)"<BR>&nbsp; File: ..\..\..\Insight\Code\IO\itkGDCMImageIO.cxx<BR>&nbsp; Line: 1659<BR>&nbsp; Description: itk::ERROR: GDCMImageIO(02E72FE0): DICOM does not support RGBPixels with components != 3</DIV>
<DIV>&nbsp;</DIV>
<DIV>The changed made to DicomSeriesReadImageWrite2.cxx is listed below.</DIV>
<DIV>&nbsp;typedef itk::HessianRecursiveGaussianImageFilter&lt; ImageType &gt;&nbsp; myFilterType;<BR>&nbsp;typedef myFilterType::OutputImageType myHessianImageType;</DIV>
<DIV>&nbsp;// Create a&nbsp; Filter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;myFilterType::Pointer filter = myFilterType::New();</DIV>
<DIV><BR>&nbsp;// Connect the input images<BR>&nbsp;filter-&gt;SetInput( reader-&gt;GetOutput() ); </DIV>
<DIV>&nbsp;// Select the value of Sigma<BR>&nbsp;filter-&gt;SetSigma( 2.5 ); </DIV>
<DIV><BR>&nbsp;// Execute the filter<BR>&nbsp;filter-&gt;Update();</DIV>
<DIV><BR>&nbsp;writer-&gt;SetInput( filter-&gt;GetOutput() );</DIV>
<DIV><BR>Thanks!</DIV>
<DIV>zlf</DIV></td></tr></table><br>


      <hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/">  好玩贺卡等你发,邮箱贺卡全新上线!</a>