Hi Mathieu,<br><br><div class="im">On Thu, Apr 23, 2009 at 12:02 PM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>></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;">
<div>On Thu, Apr 23, 2009 at 1:47 AM, Martin Kavec <<a href="mailto:martin.kavec@gmail.com" target="_blank">martin.kavec@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am using ITK-3.12 and its gdcm1 to produce RGB Dicoms. I define<br>
> RGBPixel<unsigned char> and unless I take care of setting<br>
><br>
> // AlocatedBits<br>
> itk::EncapsulateMetaData<std::string>(*dict,"0028|0100", "8");<br>
><br>
> // BitsStored<br>
> itk::EncapsulateMetaData<std::string>(*dict,"0028|0101", "8");<br>
><br>
> // HighBit<br>
> itk::EncapsulateMetaData<std::string>(*dict,"0028|0102", "8");<br>
<br>
</div>That's incorrect.<br>
<div><br>
> my images are not correctly interpreted.<br>
<br>
</div>This is quite a generic sentence. What does this means.<br>
</blockquote></div><div><br>If I do not the code above, the
resulting dicoms have correct number of slices, but each slice is
composed of 4 identical copies of the original image in 4 quadrants.<br><br></div><div class="im">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
> I am not completely sure if these setting are by designed really left to be<br>
> set by user?<br>
<br>
</div>It should not, and AFAIK it is working. Please send complete code.<br>
</blockquote></div><br> The complete code is attached. Thanks for looking at it.<br><br>Martin