//by Louisiane Perrin from Gligorijevic Lab //2020.06.23 //This macro measures the area of the spheroid over time and fits an ellipse. //To save individual images (i.e. timepoints) within a stack (i.e. timelpase x,y movie), save your image as an image sequence: File>Save As>Image Sequence //Utilize the TIFF format and select the directory to save the images. This directory will be then utilized by the macro. //Select Directory requires("1.33s"); run("Set Measurements...", "area centroid fit display redirect=None decimal=6"); roiManager("Reset"); dir = getDirectory("Choose a Directory"); Dialog.create("Type parent folder"); Dialog.addString("Parent folder", "Parent folder"); Dialog.show(); parentname=Dialog.getString; count = 0; countFiles(dir); n = 0; parentindex=indexOf(dir, parentname); processFiles(dir, parentindex); //Count files in Directory function countFiles(dir) { list = getFileList(dir); for (i=0; i