/* Michael Cammer for Microscopy Core, Office of Collaborative Science, NYU Langone Medical Center Please cite NYULMC OCS Microscopy Core if data published using these methods http://www.med.nyu.edu/ocs/microscopy/acknowledging-us v100 20150422 This is a very simple method to save all ROIs in the ROI Manager in the same directory/folder as the image. It does not take into account specific locations in hyperstacks (channels, z slices, frames, times, etc). It simply saves the ROI Manger as-is. */ //================================================================== macro "Save ROI Manager [F7]" { imageDir = getDirectory("image"); // where to save results originalTitle = replace(getTitle(), ".tif", "");; newName = imageDir + originalTitle + ".zip"; roiManager("Save", newName); }