Login  Register

Question about the plugin Calculator Plus

Posted by NatashaW on Apr 17, 2010; 8:22pm
URL: http://imagej.273.s1.nabble.com/Question-about-the-plugin-Calculator-Plus-tp3688565.html

Dear all,
I'm working on this macro to correct the images that I got them from a fluorescence microscope, and I need some help please:

*******************
dirX = getDirectory("Choose the dark reference folder");
listX = getFileList(dirX + "/");
X=listX[0];
open(dirX + X);

dirY = getDirectory("Choose H2AX image folder ");
listY = getFileList(dirY+"/");
Y = listY[0];
open(dirY + Y);

run("Calculator Plus", "i1=X i2=Y operation=[Subtract: i2 = (i1-i2) x k1 + k2] k1=1 k2=0 create");
*******************
The plugin didn't accept i1=X and i2=Y as inputs in this form "i1=X i2=Y ...
 (I think the reason is the quotations when I read the X and Y but I'm not sure) and I didn't arrive to correct it..?

Anyone could help me?
Thank you