I'd like to write a macro with SE MTF Nyquist plugin in fiji for a stack or many images in a directory. But I have to set some parameter for every image in a setting window. Any ideas?
macro "TD2"{
inputFolder = getDirectory('');
outputFolder = gerDirectory('');
setBatchMode(true);
images = getFileList(inputFolder);
for ( i=0; i <images.length;i++){
inputPath = inputFolder + images[i];
open(inputPath);
makeRectangle(1632, 568, 684, 296);
run("SE MTF Nyquist");
outputPath = outputFolder + images[i];
save(outputPath);
close();
}
}
setBatchMode(false);
exit();