|
Hello, I'm devellopping a macro for ImageJ whisch is supposed to count Points in several ROIS. The Macro Counts the dots for the first ROI, saves them in a seperate file and proceeds to the next ROI.
I tried several things from Loops to if-functiosn but I cant define the ROI.Manager count, moreover my if-functions are being ignored. The second question I have is about saving result in a file in a loop. Is there a possibility of programming a loop and creating with each pass a ne file, like ROI1, ROI2 .... One of many tries is the following one, it's the most Basic one:
array1 = newArray("1");
i=roiManager("count");
if ("array1"<"i") {
roiManager("Select", 1);
run("Find Maxima...", "output=[Point Selection]");
run("Measure");
saveAs("Results", "C:\\....ROI2.xls");
array1 = 2;
}
after it the selection of the next ROI follows. I think it's quite simple, but it's just not working.I would be very grateful. Thank you in advance.
|