Problems using ImageJ and Javascript
Posted by
Avital Steinberg on
Nov 10, 2015; 12:27pm
URL: http://imagej.273.s1.nabble.com/Problems-using-ImageJ-and-Javascript-tp5014901.html
Hi,
I am trying to create a composite image with ImageJ. I'm scripting in
Javascript.
I am using the following commands:
var imgs = [];
imgs.push(impGFP);
imgs.push(impRFP);
imgs.push(impOutofFoc);
imgMrgd = mrg.mergeChannels(imgs, false); // forming merged image
I'm getting the following error message:
"Dimensions do not match"
The dimensions do match - I can merge the images using ImageJ's graphical
user interface.
I guess it's related to the fact that I'm supposed to give an ImagePlus[]
array as an argument in the Java command, but since I created it in
Javascript, it probably isn't converted well into Java.
Does anyone have an idea how to solve this problem?
Thanks,
Avital
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html