<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> itk::ExceptionObject (013FDEAC)<BR> Location: "void __thiscall itk::GDCMImageIO::Write(const void *)"<BR> File: ..\..\..\Insight\Code\IO\itkGDCMImageIO.cxx<BR> Line: 1659<BR> Description: itk::ERROR: GDCMImageIO(02E72FE0): DICOM does not support RGBPixels with components != 3</DIV>
<DIV> </DIV>
<DIV>The changed made to DicomSeriesReadImageWrite2.cxx is listed below.</DIV>
<DIV> typedef itk::HessianRecursiveGaussianImageFilter< ImageType > myFilterType;<BR> typedef myFilterType::OutputImageType myHessianImageType;</DIV>
<DIV> // Create a Filter <BR> myFilterType::Pointer filter = myFilterType::New();</DIV>
<DIV><BR> // Connect the input images<BR> filter->SetInput( reader->GetOutput() ); </DIV>
<DIV> // Select the value of Sigma<BR> filter->SetSigma( 2.5 ); </DIV>
<DIV><BR> // Execute the filter<BR> filter->Update();</DIV>
<DIV><BR> writer->SetInput( filter->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>