//This macro divides all the images contained in a folder //into 9 equal parts and saves them in another that the user //must specify. //The name of the split images ends in a two-digit code that //indicates the position to which it corresponds: //00 corresponds to the upper left corner, //22 to the lower right corner //and 11 is the center position. //RUN THIS MACRO FROM Plugins/Macros/Run //batch directories; dir1 = getDirectory("Choose source folder "); dir2 = getDirectory("Choose the destination folder "); list = getFileList(dir1); aumento = getNumber("Indicate the magnification used (10/50)", 10); print(aumento); setBatchMode(true); //Directoy loop start; //This loop activates each image in the chosen folder; for (i=0; i