I am working with ImageJ, trying a plugin for Angiogenesis analyzer. It is adapted to opening a batch of files to analyze at once, but when I try opening a folder with files, it gives me an error message “No .tiff files found”. My files are in .tiff format and wrapped in a folder. I wonder whether the problem is some specific metadata that is with images or how can I understand what is wrong by reading the code. Here is the original code for the plugin: https://imagej.net/ij/macros/toolsets/Angiogenesis%20Analyzer.txt
And here is the code specifically for batch handling:
// batch processing adapter:
function batchProcessing () {
selectedDir = getDirectory("Choose a Directory ");
nameInitImageorFolder = File.getName(selectedDir);
setBatchMode(true);
settings ();
workingImagTemp="";
windowTabName ="Stat Results Table";
nameOfStatTab="["+windowTabName+"]"; // ajuster le nom avec le nom de dossier master
if (isOpen(windowTabName)) {print(nameOfStatTab, "\Clear");}
countBatch = 0; // number of file to analyse
countFiles(selectedDir);
incremcountBatch = 0; fileProcessed=""; countBatchTreated=0;
starttime = getTime();
if (countBatch > 0) {
showMessageWithCancel (countBatch + " Image(s) will be processed");
if (isOpen(batchStatusWindow)) {print(batchStatus, "\Clear");}
processFiles(selectedDir);
fileProcessed=fileProcessed + "Nb image(s) processed="+countBatchTreated+ ". Processing time= "+ HMS (getTime-starttime) ;
saveTab (selectedDir,windowTabName,nameInitImageorFolder);
} else {exit ("No .tiff file found");}
}
I am pretty new to Java and although I understand most of syntax, I may be missing something.
I thought that the problem was this line:
countBatch = 0
But changing it did nothing.
1