Hi Mathieu,<br><br>Thanks for your suggestions. I've changed from Secondary Capture to CT Image and the problem is still there.<br><br>I've also set these fields to "imitate" an original CT DICOM file:<br>
<br>tagkey = "0028|1052"; // Rescale Intercept<br>value = "-1024";<br>itk::EncapsulateMetaData<std::string>(dict, tagkey, value);<br>tagkey = "0028|1053"; // Rescale Slope<br>value = "1";<br>
itk::EncapsulateMetaData<std::string>(dict, tagkey, value );<br>tagkey = "0028|1054"; // Rescale Type<br>value = "HU";<br><br>but the generated DICOM shows "US" as "Rescale Type", and it doesn't solve the problem.<br>
<br>I've tried to change the "SyntaxTransfer" field to "Implicit VR Little Endian", but I don't know if that makes sense. <br><br>Today I've tried with 3DSlicer and it opens o the generated DICOM. I'm still wondering why VolView fails when trying to open it (and also why the Stryker navigator renders it with a grey box around).<br>
<br>Thanks,<br><br>Federico<br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 8:53 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Federico,<br>
<br>
Pixel Padding is in the General Equipement so it should be ok to<br>
have this attribute in Secondary Capture Image Storage. Anyway maybe<br>
there is an issue with support of those SOP Class Instance. What i<br>
would do it simply try to convert the Seconday Capture to CT Image<br>
Storage just in case...<br>
<br>
2cts<br>
<div><div></div><div class="h5"><br>
On Thu, Apr 7, 2011 at 2:21 AM, Federico Milano <<a href="mailto:fmilano@gmail.com">fmilano@gmail.com</a>> wrote:<br>
> Hi, I'm generating a synthetic DICOM image with the Insight Toolkit (using<br>
> itk::GDCMImageIO) and I've found two problems:<br>
><br>
> VolView fails loading my DICOM (with the message: Sorry, the file cannot be<br>
> read). ITK-Snap opens and shows it OK.<br>
> I'm trying to use this image in a Stryker surgical navigator. The problem is<br>
> that the image is loaded ok, but then the padding pixels are shown in a<br>
> certain gray level, showing a box (actually the bounding box) of the image.<br>
> If I load non synthetic DICOMs this doesn't happen.<br>
><br>
> This is what gdcminfo is showing:<br>
><br>
> MediaStorage is 1.2.840.10008.5.1.4.1.1.7 [Secondary Capture Image Storage]<br>
> TransferSyntax is 1.2.840.10008.1.2.1 [Explicit VR Little Endian]<br>
> NumberOfDimensions: 2<br>
> Dimensions: (33,159,1)<br>
> Origin: (0,0,0)<br>
><br>
><br>
> Spacing: (1,1,1)<br>
> DirectionCosines: (1,0,0,0,1,0)<br>
> Rescale Intercept/Slope: (0,1)<br>
> SamplesPerPixel :1<br>
> BitsAllocated :16<br>
> BitsStored :16<br>
> HighBit :15<br>
> PixelRepresentation:0<br>
> ScalarType found :UINT16<br>
><br>
><br>
> PhotometricInterpretation: MONOCHROME2<br>
> PlanarConfiguration: 0<br>
> TransferSyntax: 1.2.840.10008.1.2.1<br>
> Orientation Label: AXIAL<br>
><br>
> I'm using unsigned short as pixel type in itk::Image object and I'm setting<br>
> all the padding pixels to 0 (zero), as is suggested by the DICOM standard<br>
> for unsigned scalar images. gdcminfo does not show it, but I'm also setting<br>
> the Pixel Padding (0028,0120) field to zero.<br>
><br>
> I would really appreciate any hint about this problem.<br>
><br>
> Thanks in advance,<br>
><br>
> Federico<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br>