saveAs (format, path) – eg saveAs("Tiff",”Image_name”);
The path name must end in ".tif", ".jpg", ".gif", ".raw", ".avi", ".png", for images or ".txt“, “.xls”,
“.csv” for results tables or ".zip“ for rois
The format argument must be "tiff", "jpeg", "gif", "zip", "raw", "avi", "bmp", "fits", "png", "pgm",
"text image", "lut", "selection", "results", "xy Coordinates" or "text".
Use saveAs (“format”) to have a "Save As" dialog displayed.
The saving can be combined with the output folder as previously assigned to a variable
//save image
Image_out = output + "Image name";
saveAs ("Tiff“, Image_out);
//save results file
Res_out = output + "measurements_name.xls";
saveAs (“results“, Res_out);
//save rois
Roi_out = output + "ROIs_name.zip";
roiManager ("Save", roi_out);
Saving