<br><br><div class="gmail_quote">On Mon, Oct 19, 2009 at 4:14 AM, ×¯Áè·å <span dir="ltr">&lt;<a href="mailto:jxdw_zlf@yahoo.com.cn">jxdw_zlf@yahoo.com.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">

<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: &quot;void __thiscall itk::GDCMImageIO::Write(const void *)&quot;<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></td></tr></tbody></table></blockquote><div><br>The DICOM 2008 standard does not allow anything other than grayscale with 1 component or a color space with 3 components (RGB, YBR ...). Please check your number of component is either 1 or 3.<br>

<br>2cts<br>-Mathieu<br></div></div>