<div class="post-text">
<p>Hi, I'm generating a synthetic DICOM image with the Insight Toolkit (using itk::GDCMImageIO) and I've found two problems:</p>
<ol><li>VolView fails loading my DICOM (with the message: Sorry, the file cannot be read). ITK-Snap opens and shows it OK.</li><li>I'm trying to use this image in a Stryker surgical navigator. The
problem is that the image is loaded ok, but then the padding pixels are
shown in a certain gray level, showing a box (actually the bounding box)
of the image. If I load non synthetic DICOMs this doesn't happen.</li></ol>
<p>This is what gdcminfo is showing:</p>
<pre><code>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>
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>
PhotometricInterpretation: MONOCHROME2 <br>PlanarConfiguration: 0<br>TransferSyntax: 1.2.840.10008.1.2.1<br>Orientation Label: AXIAL<br></code></pre>
<p>I'm using unsigned short as pixel type in itk::Image object and I'm
setting all the padding pixels to 0 (zero), as is suggested by the DICOM
standard for unsigned scalar images. gdcminfo does not show it, but I'm
also setting the Pixel Padding (0028,0120) field to zero.</p>
<p>I would really appreciate any hint about this problem.</p>
<p>Thanks in advance,</p>
<p>Federico</p>
</div>