Hi,
I am trying to extract information about co localisation using ImageJ using the JACoP plugin. I was wondering how I can print the results of the analysis while looping through a set of ROIs of the original image.
Here is some example code I am using. Assume I have found all the ROIs and these have been loaded in the ROIManager...
//the multichannel image file I am loading in
open(inputPath);
n = roiManager("count");
var fn = getInfo("image.filename");
for (i=0; i<n; i++) {
// select the original multichannel image
selectWindow(fn);
// select ROI
roiManager("select", i);
// extract that image
run("Duplicate...", "title=ROI");
selectWindow("ROI");
run("Split Channels");
run("JACoP ");
run("JACoP ", "imga=[ROI (red)] imgb=[ROI (green)] thra=96 thrb=77 objdist=0-21376-158.57142857142858-396.4285714285715-true-false-true objcentpart=0-21376-true-false-true");
}
So for example, for each ROI I would like to print out the number of co localisation foci.
Thanks in advance for any help,
Steve
_______________________________________________________
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html