You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have dicom PET image test.zip. Transcoding image to the jpeg by dcm2jpg hangs on OutOfMemory error:
Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
at org.dcm4che3.image.ByteLookupTable.<init>(ByteLookupTable.java:13)
at org.dcm4che3.image.LookupTableFactory.combineModalityVOILUT(LookupTableFactory.java:278)
at org.dcm4che3.image.LookupTableFactory.createLUT(LookupTableFactory.java:236)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.applyLUTs(DicomImageReader.java:703)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.applyGrayscaleTransformations(DicomImageReader.java:485)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.read(DicomImageReader.java:468)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.readImageFromDicomInputStream(Dcm2Jpg.java:438)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg$$Lambda$49/0x000000080015ee78.apply(Unknown Source)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.convert(Dcm2Jpg.java:425)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.mconvert(Dcm2Jpg.java:412)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.main(Dcm2Jpg.java:381)
Thera are no LUT data in the image. Why is dcm4che trying to create lookup table for this image?
Desktop (please complete the following information):
OS: Linux
Version dcm4che 5.25.2
OpenJDK 17
The text was updated successfully, but these errors were encountered:
navrkalpavel
changed the title
jpg2dcm OutOfMemory error
dcm2jpg OutOfMemory error
Nov 3, 2022
Describe the bug
I have dicom PET image test.zip. Transcoding image to the jpeg by dcm2jpg hangs on OutOfMemory error:
Thera are no LUT data in the image. Why is dcm4che trying to create lookup table for this image?
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: