openjpeg 2.5.2 Segmentation Fault error on linux
Moderator: Moderator Team
-
- Posts: 2
- Joined: Sat, 2024-12-28, 12:00
openjpeg 2.5.2 Segmentation Fault error on linux
I am getting segmentation fault error when register DCMTK codecs when openjpeg2.5.2 is added. if comment out the Jpeg codec registration everything work as expected.
-
- Posts: 2
- Joined: Sat, 2024-12-28, 12:00
Re: openjpeg 2.5.2 Segmentation Fault error on linux
Correction, its turbo-jpeg, is there anyway to configure dcmtk to use turbo-jpeg instead.
-
- OFFIS DICOM Team
- Posts: 1512
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: openjpeg 2.5.2 Segmentation Fault error on linux
There is no easy way of replacing the JPEG library that is built into DCMTK (based on the IJG JPEG library version 6) with libjpeg-turbo. While both libraries share a common ancestor, the differences are big enough that replacing one by the other is not trivial.
You will find in the DCMTK issue tracker a discussion of this topic, and also a link to a "hacky proof-of-concept patch" (as the author calls it) that shows how this can be done. There are a few DICOM-specific things in DCMTK's JPEG implementation though that are not available in libjpeg-turbo, such as work-arounds for some known bugs in other people's JPEG lossless implementations that are known to have been used to create DICOM images.
You will find in the DCMTK issue tracker a discussion of this topic, and also a link to a "hacky proof-of-concept patch" (as the author calls it) that shows how this can be done. There are a few DICOM-specific things in DCMTK's JPEG implementation though that are not available in libjpeg-turbo, such as work-arounds for some known bugs in other people's JPEG lossless implementations that are known to have been used to create DICOM images.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest