I originally thought that I had another issue to deal with, but turns out this is a much bigger issue. My problem is that when I run my macro, the goal of one portion of the macro is to combine all of the selected macros into one. However, I realized that the process of combining, which would take a long time since I have several thousand ROIs, is being cut short, and as a result, only one of the ROIs is being added to the new combined ROI. Please help! I am on a time constraint and I have been trying to figure out the problem for so long now and I think I have finally found the culprit. I appreciate any and all advice and help!
The section of code in question is as follows:
roiSelect = newArray();
size = roiManager(“count”);
for (x=0; x<size ; x++)
roiSelect = Array.concat(roiSelect ,x);
The line with the 3 asteriks are where ImageJ is cutting short the process of combining. Thank you again for the help!