[Insight-users] InsightToolkit-3.12.0 problem reading Structure DCM

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Sep 1 03:24:52 EDT 2009


Your image is a CT Image Storage, this is not an RT Struct. Your pixel
spacing for your 2D image is perfectly fine.

$ gdcminfo 20372451
MediaStorage is 1.2.840.10008.5.1.4.1.1.2 [CT Image Storage]
TransferSyntax is 1.2.840.10008.1.2.1 [Explicit VR Little Endian]
NumberOfDimensions: 2
Dimensions: (512,512,1)
Origin: (-101.795,-211.795,-1107.5)
Spacing: (0.410156,0.410156,1)
DirectionCosines: (1,0,0,0,1,0)
Rescale Intercept/Slope: (-1024,1)
SamplesPerPixel    :1
BitsAllocated      :16
BitsStored         :12
HighBit            :11
PixelRepresentation:0
ScalarType found   :UINT16
PhotometricInterpretation: MONOCHROME2
PlanarConfiguration: 0
TransferSyntax: 1.2.840.10008.1.2.1
Orientation Label: AXIAL



As mentioned by Bradley, you should instantiate a 2D image to your image.

HTH

On Mon, Aug 31, 2009 at 7:38 PM, Maximilien Renard<iixamaxii at gmail.com> wrote:
> Hi there,
>
> I'm having the same problem. Did you found the solution to this
> problem ? Can someone please explain me what to do ?
>
> Thank you very much,
>
> Regards,
>
>
> Maximilien Renard
>
> 2009/5/12 Benhacene Boudan Mustafa <m.benhacene.boudan at umontreal.ca>:
>>
>> Hi all,
>>
>> When i try to read a dicom structure with InsightToolkit-3.12.0 i get the error :
>>
>>
>> terminate called after throwing an instance of 'itk::ExceptionObject'
>>  what():  /home/karim/InsightToolkit-3.12.0/Code/Common/itkImageBase.txx:183:
>> itk::ERROR: Image(0x703510): A spacing of 0 is not allowed: Spacing is [2.5, 2.5, 0]
>> Abandon
>>
>>
>> I know that it is due to a bad format of the structure dicom file that doesn't give z spacing.
>>
>> With InsightToolkit-3.0.8 i can bypass that problem using the ChangeInformationImageFilter after reading the dicom (no error message) and then process it through the other filters. Any way to do something similar with InsightToolkit-3.12.0?
>>
>> thank you
>>
>>
>> karim
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Mathieu


More information about the Insight-users mailing list