Login  Register

Error loading a dicom image using ImageJ as an applet in a webpage

Posted by charo-2 on Jun 30, 2008; 11:18am
URL: http://imagej.273.s1.nabble.com/Error-loading-a-dicom-image-using-ImageJ-as-an-applet-in-a-webpage-tp3695719.html

Hi,
I have a question about ImageJ applet.
I'm trying to run ImageJ as an applet in a webpage like this example:
http://imageja.sourceforge.net/applet.html
with a dicom image rather than a jpg image, but  it doesn't work. I get
this error:

java.lang.OutOfMemoryError: Java heap space
    at ij.plugin.DicomDecoder.getString(DICOM.java:271)
    at ij.plugin.DicomDecoder.getHeaderInfo(DICOM.java:752)
    at ij.plugin.DicomDecoder.addInfo(DICOM.java:677)
    at ij.plugin.DicomDecoder.getFileInfo(DICOM.java:623)
    at ij.plugin.DICOM.run(DICOM.java:89)
    at ij.IJ.runPlugIn(IJ.java:144)
    at ij.IJ.runPlugIn(IJ.java:126)
    at ij.io.Opener.openURL(Opener.java:279)
    at ij.ImagePlus.<init>(ImagePlus.java:123)
    at ij.ImageJApplet.init(ImageJApplet.java:93)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

How can i load a dicom image in an ImageJ applet as a web page?

Thanks very much for your help.

Regards