Save uncompressed image

89 views
Skip to first unread message

Matias

unread,
Jun 10, 2016, 6:21:53 PM6/10/16
to Fellow Oak DICOM
Hi,

I have these type of images loaded in memory (in a DicomImage object)
{JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression}

and would like to save with an uncompressed format. Is there a way to achieve this?

Thank you,

Matias.

Anders Gustafsson Cureos AB

unread,
Jun 12, 2016, 5:01:23 PM6/12/16
to Fellow Oak DICOM
Hi Matias,

It is probably easiest if you use the ChangeTransferSyntax extension method on the associated DICOM file and save the changed file:

    var dicomFile = DicomFile.Open(fileName);
    var newDicomFile = dicomFile.ChangeTransferSyntax(DicomTransferSyntax.ExplicitVRLittleEndian);
    newDicomFile.Save(newFileName);

Regards,
Anders @ Cureos
Reply all
Reply to author
Forward
0 new messages