No codec registered for tranfer syntax: JPEG Lossless or No codec registered for tranfer syntax: JPEG 2000 Image Compression

54 views
Skip to first unread message

Alejandro Acosta

unread,
Oct 26, 2016, 10:03:25 AM10/26/16
to Fellow Oak DICOM
I´m use VS 2013 and can open some DICOM image, but with others images i can´t open Dicom images, i have Native.dll and Native64.dll in the directory bin, any suggestions??

Alejandro Acosta

unread,
Oct 26, 2016, 2:00:36 PM10/26/16
to Fellow Oak DICOM
this is my code:

OpenFileDialog dlg = new OpenFileDialog();
            dlg.Filter = "DICOM Files (*.dcm;*.dic)|*.dcm;*.dic|All Files (*.*)|*.*";
            dlg.Title = "Open DICOM";
            if (dlg != null && dlg.ShowDialog().GetValueOrDefault())
            {
                ImageManager.SetImplementation(WPFImageManager.Instance);

                Tiempo.Enabled = false;
                _frame = 0;
                _file = Dicom.DicomFile.Open(dlg.FileName);

                _image = new DicomImage(_file.Dataset);
                WriteableBitmap renderedImage = _image.RenderImage(_frame).As<WriteableBitmap>();
                image.Source = renderedImage;
            }


Christoph Ernst

unread,
Oct 26, 2016, 4:34:06 PM10/26/16
to Fellow Oak DICOM
Have you installed the Microsoft C++ Redistributable Package? Usually that solves the problem.

Alejandro Acosta

unread,
Oct 26, 2016, 6:05:18 PM10/26/16
to Fellow Oak DICOM
Hi Christoph, i solved the problem, the problem were the versions of Dicom and Native were differents, regards
Reply all
Reply to author
Forward
0 new messages