From 425448410571ec960812629bbb265a03bd3fba13 Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 2 Feb 2004 18:30:07 +0000 Subject: [PATCH] modif for full check of Explicit VR writting --- checkWrite.sh | 491 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 323 insertions(+), 168 deletions(-) diff --git a/checkWrite.sh b/checkWrite.sh index cb1f380..85a32cd 100644 --- a/checkWrite.sh +++ b/checkWrite.sh @@ -1,229 +1,384 @@ -# Check WRITE +# Check READ #----------- # -# We rewrite DICOM Files -# and AFFIMDCM them to be sure the writting was OK +# We just write XDCM Files and AFFIM them +# to be sure the writting was OK # - -# WARNING : DO NOT use right now; some image names changed :-( +# Sebastien Barre's files have no interest, since the header is +# a *very clean* ACR-NEMA +# Our pb come from DICOM V3, with SQ, shadow groups, etc. #No Swap Info #------------ -affim filein=mr176621.dcm -affimdcm filein=mr176621.dcm -testWrite mr176621.dcm r -affimdcm filein=mr176621.raw dim=512 nbit=16 -testWrite mr176621.dcm d -affimdcm filein=mr176621.dcm.DCM # xmedcon OK +testWrite mr176621.dcm x; +#gdcmParser::CheckSwap: ACR/NEMA unfound swap info (time to raise bets) +affim filein=mr176621.dcm.XDCM + PrintHeader mr176621.dcm.XDCM 2 #down . # No Transfert Syntax #-------------------- -testWrite cr172241.dcm d; -affimdcm filein=cr172241.dcm.DCM zoom=-4; #xmedcon OK - #Incorrect sequence length - -testWrite cr_45031.dcm d ; -affimdcm filein=cr_45031.dcm.DCM zoom=-4 #OK +#Big Endian +testWrite cr172241.dcm x; +affim filein=cr172241.dcm.XDCM zoom=-4 +PrintHeader cr172241.dcm.XDCM 2 #down apres 0028|3006 [US][LUT Data (CTX dependent)] + +testWrite cr_45031.dcm x; +affim filein=cr_45031.dcm.XDCM DIMX=1670 DIMY=2010 nbit=16 zoom=-4 + PrintHeader cr_45031.dcm.XDCM #OK + +testWrite CR-MONO1-10-chest.dcm x; +affim filein=CR-MONO1-10-chest.dcm.XDCM DIMX=440 DIMY=440 nbit=16 +PrintHeader CR-MONO1-10-chest.dcm.XDCM 2 #OK -testWrite CR-MONO1-10-chest.dcm d; -affimdcm filein=CR-MONO1-10-chest.dcm.DCM #OK +testWrite CT-MONO2-12-lomb-an2.acr2 x; +affim filein=CT-MONO2-12-lomb-an2.acr2.XDCM DIM=512 nbit=16 +PrintHeader CT-MONO2-12-lomb-an2.acr2.XDCM 2 # OK -testWrite CT-MONO2-12-lomb-an2.acr2 d; -affimdcm filein=CT-MONO2-12-lomb-an2.acr2.DCM #OK +testWrite gdcm-MR-SIEMENS-16.acr1 x; +affim filein=gdcm-MR-SIEMENS-16.acr1.XDCM DIMX=256 DIMY=256 nbit=16 +PrintHeader gdcm-MR-SIEMENS-16.acr1.XDCM 2 #down + +testWrite gdcm-MR-SIEMENS-16.acr2 x; +affim filein=gdcm-MR-SIEMENS-16.acr2.XDCM DIMX=512 DIMY=512 nbit=16 +PrintHeader gdcm-MR-SIEMENS-16.acr2.XDCM 2 # down -testWrite gdcm-MR-SIEMENS-16.acr1 d; -affimdcm filein=gdcm-MR-SIEMENS-16.acr1.DCM #OK +testWrite MR-MONO2-12-an2.acr2 x; +affim filein=MR-MONO2-12-an2.acr2.XDCM DIMX=256 DIMY=256 nbit=16 +PrintHeader newACR1000.nema.XDCM 2 #down -testWrite gdcm-MR-SIEMENS-16.acr2 d; -affimdcm filein=gdcm-MR-SIEMENS-16.acr2.DCM #OK +testWrite newACR1000.nema x; # == gdcmMR-SIEMENS-16.acr2 +affim filein=newACR1000.nema.XDCM DIMX=512 DIMY=512 nbit=16 -testWrite MR-MONO2-12-an2.acr2 d; -affimdcm filein=MR-MONO2-12-an2.acr2.DCM; #OK +testWrite oldACR00001.ima x; # == gdcm-MR-SIEMENS.16.acr1 +affim filein=oldACR00001.ima.XDCM DIMX=256 DIMY=256 nbit=16 + PrintHeader oldACR00001.ima.XDCM 2 # down + +testWrite OT-MONO2-8-a7.dcm x; +affim filein=OT-MONO2-8-a7.dcm.XDCM DIMX=512 DIMY=512 + PrintHeader OT-MONO2-8-a7.dcm.XDCM 2 #ok + +#No Samples Per Pixel +#-------------------- +testWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm x; +affim filein=gdcm-CR-DCMTK-16-NonSamplePerPix.dcm dim=750 nbit=8 +PrintHeader gdcm-CR-DCMTK-16-NonSamplePerPix.dcm.XDCM 2 # OK -testWrite MR-MONO2-12-angio-an1.acr1 d; -affimdcm filein=MR-MONO2-12-angio-an1.acr1.DCM -echo " --- >12 bits stored, try AFFIM" -affimdcm filein=MR-MONO2-12-angio-an1.acr1.DCM bypassacr=1 dim=256 nbit=16 offset=820 +#Unnormalized Rectangular LibIDO format image +#-------------------------------------------- +testWrite gdcm-ACR-LibIDO.acr x; +affim filein=gdcm-ACR-LibIDO.acr.XDCM dimx=512 dimy=301 -testWrite newACR1000.nema d; -affimdcm filein=newACR1000.nema.DCM #OK +#Bits Allocated =12, Bits Stored=12 +#---------------------------------- +#MR Philips (once upon a time in Lyon-Sud) +testWrite MR-MONO2-12-angio-an1.acr1 x; +affim filein=MR-MONO2-12-angio-an1.acr1.XDCM dim=256 nbit=16 -testWrite oldACR00001.ima d; -affimdcm filein=oldACR00001.ima.DCM #OK +#RGB +#--- +testWrite US.3405.1.dcm x; +echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0" +echo " PhotometricInterpretation=RGB" +affim filein=US.3405.1.dcm.XDCM -testWrite OT-MONO2-8-a7.dcm d; -affimdcm filein=OT-MONO2-8-a7.dcm.DCM #OK, xmedcon OK +testWrite OT-PAL-8-face.dcm x; +echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1" +echo " PhotometricInterpretation=PALETTE COLOR" +affim filein=OT-PAL-8-face.dcm.XDCM -#RGB -testWrite US.3405.1.dcm d -affimdcm filein=US.3405.1.dcm.DCM # Nothing displayed -affimdcm filein=US.3405.1.dcm.DCM bypassacr=1 offset=1592 nbit=24 dimx=768 dimy=576 # seg fault -echo "expected : wrong color" - # breaks xmedcon - # Incorrect PixelData length - # Incorrect sequence length - # seg fault - -testWrite OT-PAL-8-face.dcm d -affimdcm filein=OT-PAL-8-face.dcm.DCM # nothing displayed -affimdcm filein=OT-PAL-8-face.dcm.DCM dimx=640 dimy=480 nbit=24 offset=1814 bypassacr=1 - # breaks xmedcom - # Incorrect PixelData Length - # Unexpected end of file - # wrong image - -testWrite 8BitsUncompressedColor.dcm d; -affimdcm filein=8BitsUncompressedColor.dcm.DCM -#xmedcom : OK -# Incorrect OW value representation (fixed) -# awfull stuff after pixels +testWrite 8BitsUncompressedColor.dcm x; +affim filein=8BitsUncompressedColor.dcm.XDCM # Implicit VR - Little Endian #----------------------------- -testWrite gdcm-US-ALOKA-16.dcm d; -echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account" -echo "neither e-film nor DicomWorks deals with the color" -affimdcm filein=gdcm-US-ALOKA-16.dcm.DCM -#breaks xmedcon -# warning: Incorrect sequence length -# error: Missing CLUT -# error: No images found -testWrite CT-MONO2-16-ankle.dcm d; -affimdcm filein=CT-MONO2-16-ankle.dcm.DCM #OK +testWrite CT-MONO2-16-ankle.dcm x; + affim filein=CT-MONO2-16-ankle.dcm.XDCM + PrintHeader CT-MONO2-16-ankle.dcm 2 #ok + +testWrite CT-MONO2-16-ort.dcm x; +affim filein=CT-MONO2-16-ort.dcm.XDCM +PrintHeader CT-MONO2-16-ort.dcm.XDCM 2 #ok -testWrite CT-MONO2-16-ort.dcm d; -affimdcm filein=CT-MONO2-16-ort.dcm.DCM #OK +testWrite CT-MONO2-8-abdo.dcm x; +affim filein=CT-MONO2-8-abdo.dcm.XDCM -testWrite CT-MONO2-8-abdo.dcm d; -affimdcm filein=CT-MONO2-8-abdo.dcm.DCM #OK +testWrite gdcm-MR-PHILIPS-16.dcm x; +affim filein=gdcm-MR-PHILIPS-16.dcm.XDCM +#PrintHeader OK; v OK; breaks xmedcom -testWrite gdcm-MR-PHILIPS-16.dcm d; -affimdcm filein=gdcm-MR-PHILIPS-16.dcm.DCM #OK +testWrite MR-MONO2-16-head.dcm x; +affim filein=MR-MONO2-16-head.dcm.XDCM -testWrite irmPhlipsNew1.dcm d; -affimdcm filein=irmPhlipsNew1.dcm.DCM #OK +testWrite multiframe1Integris.dcm x; +affim filein=multiframe1Integris.dcm.XDCM dim=1024 nbit=16 zoom=-2 +affim filein=multiframe1Integris.dcm.XDCM dim=1024 nbit=16 offset=31457280 zoom=-2 + PrintHeader CT-MONO2-8-abdo.dcm.XDCM 2 + +testWrite multiframe2GE.dcm x; +affim filein=multiframe2GE.dcm.XDCM dim=512 +affim filein=multiframe2GE.dcm.XDCM dim=512 offset=14417920 -testWrite MR.6799.1.dcm d; -affimdcm filein=MR.6799.1.dcm.DCM #OK +testWrite irmPhlipsNew1.dcm x; # == gdcm-MR-PHILIPS-16.dcm +affim DIMX=256 DIMY=256 filein=irmPhlipsNew1.dcm.XDCM nbit=16 -testWrite MR-MONO2-16-head.dcm d; -affimdcm filein=MR-MONO2-16-head.dcm #OK +#avec imagette (icone) -testWrite multiframe1Integris.dcm d; -affimdcm filein=multiframe1Integris.dcm.DCM -affim filein=multiframe1.dcm.DCM dim=1024 nbit=16 offset=31457280 bypassacr=1 -testWrite multiframe2.dcm d; -affimdcm filein=multiframe2.dcm.DCM -testWrite test.acr d; #OK +testWrite icone.dcm x; +PrintHeader icone.dcm.XDCM 2; +#PrintHeader OK; v OK; breaks xmedcom -affimdcm filein=test.acr.DCM -#avec imagette -testWrite icone.dcm d -echo "Hopeless till we stop considering the Tag as an identifier" -affimdcm filein=icone.dcm.DCM +#Palette + +# ??? +# 8 Bits ? +# 16 Bits ? #Explicit VR - Little Endian #---------------------------- -testWrite CT-MONO2-16-brain.dcm d; -affimdcm filein=CT-MONO2-16-brain.dcm.DCM #OK +testWrite CT-MONO2-16-brain.dcm x; +affim filein=CT-MONO2-16-brain.dcm.XDCM DIMX=512 DIMY=512 nbit=16 signe=o + +testWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm x; +affim filein=gdcm-MR-PHILIPS-16-Multi-Seq.dcm.XDCM DIMX=128 DIMY=128 nbit=16 +PrintHeader gdcm-MR-PHILIPS-16-Multi-Seq.dcm 2 -testWrite gdcm-CR-DCMTK-16-NonSamplePerPix.dcm d -testWrite gdcm-MR-PHILIPS-16-Multi-Seq.dcm d -testWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm d -testWrite MR-MONO2-8-16x-heart.dcm d -testWrite NM-MONO2-16-13x-heart.dcm d -testWrite sonataMonaco.dcm d + +testWrite gdcm-MR-PHILIPS-16-NonRectPix.dcm x; +affim filein=gdcm-MR-PHILIPS-16-NonRectPix.dcm.XDCM + +testWrite MR-MONO2-8-16x-heart.dcm x; +affim filein=MR-MONO2-8-16x-heart.dcm.XDCM + +testWrite NM-MONO2-16-13x-heart.dcm x; +affim filein=NM-MONO2-16-13x-heart.dcm.XDCM DIMX=64 DIMY=64 nbit=16 +affim filein=NM-MONO2-16-13x-heart.dcm.XDCM DIMX=64 DIMY=64 nbit=16 offset=98304 + +testWrite sonataMonaco.dcm x; +affim filein=sonataMonaco.dcm.XDCM DIMX=256 DIMY=208 nbit=16 #MultiFrame -testWrite US-MONO2-8-8x-execho.dcm d -affimdcm filein=US-MONO2-8-8x-execho.dcm.DCM +testWrite US-MONO2-8-8x-execho.dcm x; +PrintHeader US-MONO2-8-8x-execho.dcm.XDCM +xmedcon US-MONO2-8-8x-execho.dcm.XDCM; #RGB -testWrite US-RGB-8-epicard.dcm d; -affimdcm filein=US-RGB-8-epicard.dcm.DCM #OK xmedcon OK -testWrite US-RGB-8-esopecho.dcm d; -affimdcm filein=US-RGB-8-esopecho.dcm.DCM #OK xmedcon OK +testWrite US-RGB-8-epicard.dcm x; +echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=1" +echo " PhotometricInterpretation=RGB" +affim filein=US-RGB-8-epicard.dcm.XDCM dimx=640 dimy=480 nbit=24 + +testWrite US-RGB-8-esopecho.dcm x; +echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0" +echo " PhotometricInterpretation=RGB" +affim filein=US-RGB-8-esopecho.dcm.XDCM dimx=256 dimy=120 nbit=24 # Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]) #-------------------------------------------------------------------------- -testWrite CT-MONO2-16-chest.dcm d; -affimdcm filein=CT-MONO2-16-chest.dcm.DCM #OK -# breaks xmedcom : black image -#warning: Incorrect PixelData length -#warning: Tag with uneven length -#error: Unexpected end of file - -testWrite gdcm-JPEG-LossLess3a.dcm d; -affimdcm filein=gdcm-JPEG-LossLess3a.dcm.DCM - -testWrite XA-MONO2-8-12x-catheter.dcm d -ls -l XA-MONO2-8-12x-catheter.dcm* #wrong images with xmedcon -affimdcm filein=XA-MONO2-8-12x-catheter.dcm.DCM -affimdcm filein=XA-MONO2-8-12x-catheter.dcm.DCM dim=512 num=6 bypassacr=1 -affimdcm filein=XA-MONO2-8-12x-catheter.dcm.DCM dim=512 num=11 bypassacr=1 - -#JPEG Extended (Process 2 & 4) // 16 bits -#----------------------------- -testWrite gdcm-JPEG-Extended.dcm d -affimdcm filein=gdcm-JPEG-Extended.dcm.DCM #OK -#breaks xmedcon warning: Incorrect sequence length -# warning: Incorrect PixelData length -# error: Unexpected end of file +# (JPEG Lossless) + +testWrite CT-MONO2-16-chest.dcm x; +affim filein=CT-MONO2-16-chest.dcm.XDCM dimx=512 dimy=400 nbit=16 signe=o + +testWrite 012345.002.050.dcm x; +affim filein=012345.002.050.dcm.XDCM dim=256 nbit=16 + +testWrite gdcm-JPEG-LossLess3a.dcm x; +PrintHeader gdcm-JPEG-LossLess3a.dcm.XDCM 2 +xmedcon gdcm-JPEG-LossLess3a.dcm.XDCM +testWrite XA-MONO2-8-12x-catheter.dcm x; +PrintHeader XA-MONO2-8-12x-catheter.dcm.XDCM 2; +xmedcon XA-MONO2-8-12x-catheter.dcm.XDCM; -testWrite jpeglossy1.dcm d -affimdcm filein=jpeglossy1.dcm.DCM #OK -#breaks xmedcon warning: Incorrect sequence length -# warning: Incorrect PixelData length -# seg fault +testWrite xa_integris.dcm x; +echo "a lot of fragments expected here" +xmedcon xa_integris.dcm.XDCM -testWrite philipsMR-lossy.ima d -affimdcm filein=philipsMR-lossy.ima.DCM #OK -# breaks xmedcom : -# Incorrect sequence length -# Incorrect PixelData length + +testWrite 16BitsJpegLosslessGrayScale.dcm x; +affim filein=16BitsJpegLosslessGrayScale.dcm.XDCM DIMX=800 DIMY=535 nbit=16 + +#comming from GE dlx via VTServer +testWrite I9000001.dcm x; +PrintHeader I9000001.dcm.XDCM 2; +#no image found +v I9000001.dcm.XDCM; +xmedcon I9000001.dcm.XDCM; + +#JPEG Extended (Process 2 & 4) // 16 bits +#----------------------------- +testWrite gdcm-JPEG-Extended.dcm x; +xmedcon gdcm-JPEG-Extended.dcm.XDCM + +testWrite jpeglossy1.dcm x; +xmedcon jpeglossy1.dcm.XDCM #JPEG Baseline (Process 14) #-------------------------- -testWrite MR-MONO2-12-shoulder.dcm d -echo "expected : 'Unsupported JPEG process: SOF type 0xc3' on MR-MONO2-12-shoulder.dcm" -affimdcm filein=MR-MONO2-12-shoulder.dcm.DCM #OK -#breaks xmedcon warning: Incorrect PixelData length -# warning: ITag with uneven length -# error: Unexpected end of file +testWrite MR-MONO2-12-shoulder.dcm x; +xmedcon MR-MONO2-12-shoulder.dcm.XDCM; #fichier format ecat. -#testWrite imageEcat.ecat d +#testWrite imageEcat.ecat r -#JPEG Lossy 8 bits (to be checked with the right lib : modify jmorecfg.h, gdcmFile.cxx) +#JPEG Lossy 8 bits #================= #JPEG Baseline (Process 1) -#-------------------------- +#------------------------- # Bracco Files -testWrite US.1.2.dcm d; -affimdcm filein=US.1.2.dcm.DCM -affimdcm filein=US.1.2.dcm.DCM DIMX=768 DIMY=576 nbit=24 bypassacr=1 num=3 offset=1592 - # breaks xmedcon : Incorrect sequence length, - # Unknown PhotometricInterpretation, - # Incorrect PixelData length -testWrite US.1.3.dcm d -affimdcm filein=US.1.2.dcm.DCM -# -testWrite CLIP0001.dcm d -affimdcm filein=CLIP0001.dcm.DCM -affimdcm filein=CLIP0001.dcm.DCM DIMX=768 DIMY=576 nbit=24 bypassacr=1 num=2 -affimdcm filein=CLIP0001.dcm.DCM DIMX=768 DIMY=576 nbit=24 bypassacr=1 num=15 -affimdcm filein=CLIP0001.dcm.DCM DIMX=768 DIMY=576 nbit=24 bypassacr=1 num=31 -affimdcm filein=CLIP0001.dcm.DCM DIMX=768 DIMY=576 nbit=24 bypassacr=1 num=32 +testWrite US.1.2.dcm x; +echo "expected : A lot of Fragments (40), nb Frames = 40 ;-)" +echo "expected pixelType=8U SamplesPerPixel=3 PlanarConfiguration=0" +echo " PhotometricInterpretation=YBR_FULL_422" +xmedcom US.1.2.dcm.XDCM +#Sequoia Acusson U11 +testWrite CLIP0001-Sequoia-U11.dcm x; +xmedcon CLIP0001-Sequoia-U11.dcm.XDCM #RLE Lossless #------------- -testWrite US-PAL-8-10x-echo.dcm d -testWrite canada.dcm d -testWrite FMAG0002.dcm d -testWrite QMAG0001.dcm d +testWrite canadaAloka.dcm x; +echo "expected pixelType=8U SamplesPerPixel=1" +echo " PlanarConfiguration=0 PhotometricInterpretation=MONOCHROME2" +echo " nb Frames (DIMZ) : 1" +xmedcon canadaAloka.dcm.XDCM +testWrite jpeglossy1.dcm x; + +testWrite FMAG0001.dcm x; +echo "expected pixelType=8U SamplesPerPixel=3" +echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL" +echo " nb Frames (DIMZ) : 1" +xmedcon FMAG0001.dcm.XDCM + +testWrite QMAG0001.dcm x; +echo "expected pixelType=8U SamplesPerPixel=3" +echo " PlanarConfiguration=1 PhotometricInterpretation=YBR_FULL" +affim filein=QMAG0001.dcm.XDCM DIMX=384 DIMY=288 nbit=24; + +testWrite US-PAL-8-10x-echo.dcm x; +echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=0" +echo " PhotometricInterpretation=PALETTE COLOR" +echo " nb Frames (DIMZ): 10" +echo "expected : Parsing 10 'single fragment' Segments" +echo " Reading 10 'single fragment' Segments (ouf!)" +affim filein=US-PAL-8-10x-echo.dcm.XDCM DIMX=600 DIMY=430 nbit=24 +affim filein=US-PAL-8-10x-echo.dcm.XDCM DIMX=600 DIMY=430 nbit=24 offset=774000 +affim filein=US-PAL-8-10x-echo.dcm.XDCM DIMX=600 DIMY=430 nbit=24 offset=1548000 +affim filein=US-PAL-8-10x-echo.dcm.XDCM DIMX=600 DIMY=430 nbit=24 offset=6966000 + +testWrite 8BitsRunLengthGrayScale.dcm x; +echo "expected : correct Gray image" +affim filein=8BitsRunLengthGrayScale.dcm.XDCM DIMX=800 DIMY=535 + +testWrite 8BitsRunLengthColor.dcm x; +echo "expected pixelType=8U SamplesPerPixel=1 PlanarConfiguration=2" +echo " PhotometricInterpretation=PALETTE COLOR" +echo "expected correct color image" +affim filein=8BitsRunLengthColor.dcm.XDCM DIMX=800 DIMY=535 nbit=24 + +#RLE 16 bits --> Try to find some more images + +testWrite 16BitsRunLengthGrayScale.dcm x; +echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0" +echo " PhotometricInterpretation=MONOCHROME2" +affim filein=16BitsRunLengthGrayScale.dcm.XDCM DIMX=800 DIMY=535 nbit=16 + +#Were supposed to be bugged +#-------------------------- +#(break xmedcon) + +testWrite 00191113.dcm x; +#OK +xmedcon 00191113.dcm.XDCM + + +testWrite DermaColorLossLess.dcm x; +#breaks xmedcon + xmedcon DermaColorLossLess.dcm.XDCM +#Feb 02 19:33:16 log[2619]: warning: Tag with uneven length +#Feb 02 19:33:16 log[2619]: warning: No transfer syntax found +#Feb 02 19:33:16 log[2619]: error: No images found +# v : OK +v DermaColorLossLess.dcm.XDCM + +#Original breaks xmedcon +xmedcon RadBWLossLess.dcm; +testWrite RadBWLossLess.dcm x; +#No pixel found +v RadBWLossLess.dcm.XDCM; +xmedcon RadBWLossLess.dcm.XDCM; + +#Known as BUGGED ! +#---------------- + +#Rectangular old 24 Bits image +testWrite gdcm-RGB-LibIDORect.acr x; +v gdcm-RGB-LibIDORect.acr.XDCM + +#MR GE GENESIS_SIGNA Palo Alto +testWrite DicomSampleNastyGEImage.dcm x; +echo " expected : warning uneven length (13) for 0008|103e" +xdedcon DicomSampleNastyGEImage.dcm.XDCM + +#MR Philips NTSCAN Hop. Neuro Lyon +testWrite philipsMR-lossy.ima x; +echo "WAS expected : 'Bogus Huffman table definition' on philipsMR-lossy.ima" +echo "IS expected : 'JERR_BAD_HUFF_TABLE sym 16 (>15') but the show goes on" +echo "breaks xmedcon" +affim filein=philipsMR-lossy.ima.XDCM dim=512 nbit=16 + +#CT Siemens Hop. Salengro Lille +testWrite gdcm-JPEG-LossLess3a.dcm x; +echo "expected : wrong sequence delimiter (b00c,0eb6) at end of pixels"; +echo "xmedcon says 'error: Unexpected end of file'" +affim filein=gdcm-JPEG-LossLess3a.dcm.XDCM dim=512 nbit=16 +vtkgdcmViewer gdcm-JPEG-LossLess3a.dcm + +#CR Philips Thoravision Hop Cardio Lyon +testWrite gdcm-JPEG-LossLessThoravision.dcm x; +echo "expected : 147 fragments,length : 29860 + 145*32760 + 14416" +echo "breaks xmedcom, breaks e-film" +echo "WAS expected : hashed image -with jLBJpeg-" +echo "IS expected : Seg Fault" +affim filein=gdcm-JPEG-LossLessThoravision.dcm.XDCM DIMX=1876 DIMY=2076 nbit=16 + +#MR Picker ST. ANTHONY HOSPITAL +testWrite MR.6799.1.dcm x; +echo "OK; DICOM Image with NO Preamble" +affim filein=MR.6799.1.dcm.XDCM dim=512 nbit=16 + +#Segmented Palette Color LUT Data +testWrite gdcm-US-ALOKA-16.dcm x; +echo "expected pixelType=16U SamplesPerPixel=1 PlanarConfiguration=0" +echo " PhotometricInterpretation=PALETTE COLOR" +echo "expected : Gray image since 'Segmented xxx Palette Color LUT Data' not yet taken into account" +echo "neither e-film nor DicomWorks deals with the color" +echo "breaks xmedcom" +echo "breaks vtkgdcmViewer (bad result : 24 bits expected; 16 found in Pixels area)" +vtkgdcmViewer gdcm-US-ALOKA-16.dcm +affim dimx=640 dimy=480 filein=gdcm-US-ALOKA-16.dcm.XDCM nbit=16 + +# bugged Siemens 'Leonardo' image +testWrite 8078283Leonardo.dcm x; +affim filein=8078283Leonardo.dcm.XDCM dim=512 nbit=16 + +#CT McTwin Elscint C.H.R.U LILLE C.HURIEZ +testWrite MxTwinLossLess.dcm x; +affim filein=MxTwinLossLess.dcm.XDCM DIMX=512 DIMY=512 nbit=16 + +# MRI image from VPRO burned CD +testWrite mriThruVPRO.dcm x; +affim filein=mriThruVPRO.dcm.XDCM DIMX=256 DIMY=256 nbit=16 +echo "expected : tasteless SHIT !" +echo "breaks Siemens Leonardo viewer . JPEG encoding is bugged?" + +# gdcm made Theralys image +# due to H table, a SeQuence is tagged with 0 length +# when using gdcmFile::WriteDcmXXX +testWrite fromTheralys.dcm x; +affim filein=fromTheralys.dcm.XDCM dim=256 nbit=16 -- 2.45.1