Hi all!
I added another piece of code to my macro, and the goal of this part of the code is to use the AND function in the ROI Manager to combine a bunch of small ROIs with a larger overlay to exclude all the small ROIs that are not included in the overlay. However, for some reason, when I place the overlay and exclude the ROIs outside, the number of ROIs actually increases! So the total number of smaller ROIs is 193, but when I add the overlay, the number becomes 197, which, I don’t even understand how that’s even remotely possible.
roiManager(“select”, roiSelect3);
roiManager(“AND”);
roiManager(“add”);
print(“Combined…”);
roiManager(“Select”, 2);
roiManager(“Split”);
print(“Split…”); // 150
roiSelect2 = newArray();
size = roiManager(“count”);
This is the code that I have used for this section. I am open to any and all advice and help!
Thanks!
Note: roiSelect3 will select all the mini ROIs, which have been combined into one, and the larger overlay.