Login  Register

Re: Problems with DICOM in 1.41b

Posted by Wayne Rasband on May 09, 2008; 3:32pm
URL: http://imagej.273.s1.nabble.com/Problems-with-DICOM-in-1-41b-tp3696254p3696255.html

These bugs are fixed in the ImageJ 1.41c daily build, thanks to sample
DICOMs provided by Alberto. The MR Siemens files had an incorrectly
encoded FD (Float Double) private tag with an element length of 24
instead of 8. The "out of memory" errors where the result of ImageJ not
correctly handling UT (Unlimited Text) tags.

-wayne

On May 8, 2008, at 5:14 AM, Alberto Duina wrote:

> Hi all,
> today, after the upgrade of ImageJ at 1.41b I have problems
> opening some DICOM images, from a MR Siemens machine, here is the
> message:
> java.lang.NegativeArraySizeException
> at ij.plugin.DicomDecoder.getString(DICOM.java:270)
> at ij.plugin.DicomDecoder.getHeaderInfo(DICOM.java:743)
> at ij.plugin.DicomDecoder.addInfo(DICOM.java:676)
> at ij.plugin.DicomDecoder.getFileInfo(DICOM.java:622)
> at ij.plugin.DICOM.run(DICOM.java:89)
> at ij.IJ.runPlugIn(IJ.java:131)
> at ij.IJ.runPlugIn(IJ.java:113)
> at ij.io.Opener.openImage(Opener.java:200)
> at ij.io.Opener.openImage(Opener.java:253)
> at ij.io.Opener.open(Opener.java:117)
> at ij.io.Opener.open(Opener.java:56)
> at ij.plugin.Commands.run(Commands.java:23)
> at ij.IJ.runPlugIn(IJ.java:131)
> at ij.Executer.runCommand(Executer.java:104)
> at ij.Executer.run(Executer.java:58)
> at java.lang.Thread.run(Unknown Source)
> the problem not appear with older (>2years) Siemens images.
>
> Another similar problem with images from an HITACHI machine, here the
> message is:
> <Out of memory>
>
> No problems with images from a GE machine.
>
> With the 1.41a version the problems disappear.
>
> I have tried to investigate, activating the Debug Mode, in the Log
> window
> appear the DicomDecoder output, but it stops somewere into the private
> tags, after (0019,1015  FD 24 bytes from 1510) ---: 0.0 and
> before the 0019,1016) that must be a DS value (seen with hexWorkShop).
> With a BP in Eclipse appear wrong the elementLength = -1067065344
>
> Anybody has similar problems?
> Thanks.
> Alberto
>