ChangeTranferSyntax is not working when change to JPEG2000Lossy from Implicit VR-LIttleEndian

91 views
Skip to first unread message

nag7377

unread,
Aug 26, 2015, 12:41:05 AM8/26/15
to Fellow Oak DICOM for .NET
Hi,

I tried with the following code to change the DicomTranferSyntax Implicit VR-Little Endian to JPEG200LOSSY but its not creating the JPEG2000Lossy Dicomfile.  But the same code is working fine when creating all ending with Endian formats from Implicit VR-Little Endian.

DicomFile df = DicomFile.Open(dicomfile_name);

df = df.ChangeTransferSyntax(DicomTransferSyntax.JPEG2000Lossy);

df.Save("d:\\changed.dcm");

how can I change to JPEG2000Lossy TransferSyntex Dicom file

Regards

A. Nageswara Rao

Anders Gustafsson Cureos AB

unread,
Aug 26, 2015, 2:34:26 AM8/26/15
to Fellow Oak DICOM for .NET
Which fo-dicom version are you running?

Do you receive any error message? 

Is the file "changed.dcm" created, and if it is, which transfer syntax is it using?

Are the codec assemblies (DICOM.Native.dll and/or Dicom.Native64.dll) available in the same directory as DICOM.dll?

Regards,
Anders @ Cureos

Chris Horn

unread,
Aug 27, 2015, 8:18:14 AM8/27/15
to Fellow Oak DICOM for .NET
whats the imput file bit depth?

some older images are 10 bit and can produce different results, from memory the native libs assume an imput bit depth of 16, 12 or 8.

This has long been an issue trying to go from 16 bit to 8 bits does not work with all syntax's. however J2K is the one that works well most of the time or Jpeg-LS

nag7377

unread,
Sep 7, 2015, 2:44:34 AM9/7/15
to Fellow Oak DICOM for .NET
Yes it created all the formats after adding DICOM.Native.dll and/or Dicom.Native64.dll  in the same directory

Thank You
Reply all
Reply to author
Forward
0 new messages