/* A simple macro select all or most ROIs v230817: 1st version Peter J. Lee, Florida State University */ macroL = "Select_All_ROIs_v230817b.ijm"; nROIs = roiManager("count"); if (nROIs<2) exit("Multiple ROIs not found"); selectedROIs = Array.getSequence(nROIs); roiSizes = newArray(); roiGroups = newArray(); for (i=0;i0){ iExclusions = newArray(); for (i=0;i=0) RoiManager.setGroup(setGroup); if (!startsWith(operation,"No")) roiManager(operation); if (addSet){ roiManager("Add"); roiManager("Select", nROIs); roiManager("Rename",operation + "_" + Roi.getName); }