i want to convert dicom lossless to dicom 2000

264 views
Skip to first unread message

mdimran patel

unread,
Jun 18, 2020, 5:40:55 AM6/18/20
to Fellow Oak DICOM
i want to convert dicom lossless to dicom 2000 please tell using fo-dicom how we can convert please help me

Reinhard Gruber

unread,
Jul 3, 2020, 3:43:56 AM7/3/20
to Fellow Oak DICOM
First you open the source file, then you call `Clone` and pass the new transfer syntax as parameter. 

      var oldDcm = DicomFile.Open("oldFile.dcm");
      var newDcm = oldDcm.Clone(DicomTransferSyntax.....); // whatever you want
      newDcm.Save("newFile.dcm");

you might add the usings manually, if your IDE does not recognize. the `.Clone()` method is an extension method and lives in namespace `Dicom.Imaging.Codec`

nndevi

unread,
Aug 10, 2020, 6:59:18 AM8/10/20
to Fellow Oak DICOM
I have to as something here.

I facing this issue for a while without no solution..

Issue
 Encoding datasets to transfer syntax: JPEG 2000 Image Compression is not supported. See here to get help resolving the reason: https://github.com/fo-dicom/fo-dicom/wiki/Native-codecs-on-.NET 

Ways tried to solve:
  • I have change the "Platform target" to x82 and x64 but still nothing.
  • as well, checked with corflags.exe and does show "PE32+" which means it does run as x64.
  • I have tried to update to version 5.xx beta, but same error.
  • make windows service (Dicom service) run as Administrator, not help.
background:
Visual studio .net standard project which connected to WCF service. Installed all successfully over Windows server. As well, it is possible to read Dicomfile datasets but Cloning not working somehow..

Any help will be very welcome :)

geert.e.va...@gmail.com

unread,
Aug 10, 2020, 12:24:08 PM8/10/20
to Fellow Oak DICOM

nndevi

unread,
Aug 10, 2020, 11:20:44 PM8/10/20
to Fellow Oak DICOM
Thanks! This was the solution!
Reply all
Reply to author
Forward
0 new messages