passing image to ImageJ via Java Web Start
Posted by
arnim.jenett on
Jan 31, 2010; 7:46pm
URL: http://imagej.273.s1.nabble.com/passing-image-to-ImageJ-via-Java-Web-Start-tp3689525.html
Hi,
is there a way to pass the path of an image to imagej when it is called by Java Web Start?
Situation: I created a catalog of images using html. these images I currently can open in ImageJA (applet), but 1) after a couple of images I reliably run into a an "out-of-memory" exception and 2) on a weak network it is rather slow to download Imagej every time I call it (often).
Therefore I thought about using Java Web Start instead and found the corresponding jnpls ( thanks dscho, curtis and wayne). But there is no way documented how I could pass image information via the jnpl to ImageJ.
for clarification; from a shell I would do this like this:
#!/bin/sh
java -jar /full/path/to/ImageJ/ij.jar -ijpath /full/path/to/ImageJ /full/path/to/my/image
reading up on this I hoped it would be as easy as passing the image to the call of ij.jar, so in the ImageJ.jnpl I changed
<jar href="
http://rsb.info.nih.gov/ij/signed-applet/ij.jar"/>into
<jar href="
http://rsb.info.nih.gov/ij/signed-applet/ij.jar?arg=/tests/Photo1.jpg"/>but that does not work.
I also tried to pass it as "<argument>" from inside the "<application-desc>" but that failed as well.
even nicer would be, if I could call the jnpl with the image's parameters (in hmtl).
Does something like this exist?
Thanks,
aRnim