openjpeg 2.5.2 Segmentation Fault error on linux

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
KhalidAljayoussi
Posts: 2
Joined: Sat, 2024-12-28, 12:00

openjpeg 2.5.2 Segmentation Fault error on linux

#1 Post by KhalidAljayoussi »

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.

KhalidAljayoussi
Posts: 2
Joined: Sat, 2024-12-28, 12:00

Re: openjpeg 2.5.2 Segmentation Fault error on linux

#2 Post by KhalidAljayoussi »

Correction, its turbo-jpeg, is there anyway to configure dcmtk to use turbo-jpeg instead.

Marco Eichelberg
OFFIS DICOM Team
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

#3 Post by Marco Eichelberg »

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.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest