c# - Change dicom Transfer Syntax showing no registered codec using mDCM -


I'm having trouble with changing the transfer syntax.
I am using the mdcm library and I have also added the dcom.codecdl for this project.
Compressed files in 0002,0010, transfer syntax UID = 1.2.840.10008.1.2.4.90 (JPEG 2000 image compression (lossless only)). Error: The Dcom Codex was caught. There is no registered codec for transfer syntax!

My code:

  string file = "c: \\ dcom \\ 1001.dcm"; String output = "c: \\ dcom \\ dmprocessed \\ 1001.dcm"; Deccomfile formatFF = new decfile format (); Ff.Load (file, decome.demmRaid option default); Ff.ChangeTransferSytnax (DicomTransferSyntax.ExplicitVRLittleEndian, null); // Here error No registered codec for transfer syntax! D.Com. Imaging Diamond Image IM = New Diacom. Imaging Diamond image (FF dataset); System.Drawing.Image i = im.Render (); I.Save (Production);   

The other thing I have noticed is that tag 7FE0,0010, pixel data = 0 . For other Dicom files, the pixel data tag should have values ​​greater than 0 .

Do not open files in my other Daynk viewer (Ijheedicom, Dicomvrks, Irfanvi etc.). So, I thought the file is corrupt but, then the client gave us a application (.exe) , which has uncompressed the file.
After the inconvenience, all my viewers had shown the image properly.
decompressed files 7FE0,0010, pixel data = 131072 .

As outlined in error, I did not have to register the codec.

This line has registered the codec. Diom.Codec. JPG 2000. DCMJPG 2000 Codecricist ();

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

C++ Array Type Not Assignable in Copy Constructor -