|
From: Mohica J. <moh...@gm...> - 2015-03-11 15:36:02
|
Mathieu, gdcmconv, gdcmimg work on some other dicom images I have without any error and I can properly open the pnm file: gdcmconv --raw test.dcm test.raw.dcm gdcmimg test.raw.dcm test.pnm However it doesn't work on that CT1_JLSL.dcm I wonder if there is any way to make it work against CT1_JLSL.dcm. How can I convert signed representation to unsigned if this is what makes it failed [root@localhost ~]# gdcminfo CT1_JLSL_raw.dcm 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) SamplesPerPixel :1 BitsAllocated :16 BitsStored :16 HighBit :15 PixelRepresentation:1 ScalarType found :INT16 PhotometricInterpretation: MONOCHROME2 PlanarConfiguration: 0 TransferSyntax: 1.2.840.10008.1.2.1 Origin: (-158.136,-179.036,-75.7) Spacing: (0.661468,0.661468,1) DirectionCosines: (1,0,0,0,1,0) Rescale Intercept/Slope: (-1024,1) Orientation Label: AXIAL Thank you very much in advance On Wed, Mar 11, 2015 at 10:57 AM, Mathieu Malaterre <mat...@gm...> wrote: > On Wed, Mar 11, 2015 at 3:42 PM, Mohica Jasha <moh...@gm...> wrote: >> Hi Mathieu, >> >> [root@localhost ~]# gdcmconv --raw CT1_JLSL.dcm CT1_JLSL_raw.dcm >> [root@localhost ~]# gdcmimg CT1_JLSL_raw.dcm CT1_JLSL_raw.dcm.pgm >> Problem writing PNM file > > If you use gdcminfo on CT1_JLSL_raw.dcm you'll see that the image has > a signed representation for pixel data. PNM (aka PGM) do not support > storing of signed data, hence the error. > > Try on unsigned dataset first. > > 2cts |