Re: Error while script iteration over next folder in headless mode
I am getting an error while iterating over second folder in root directory in headless mode on windows.
The imageJ script is written to iterate over all the folders in the root folder.
It works well when executed via Fiji.
On running it in headless mode it works fine on first folder but as it moves to the next folder I get the following error:
The Script performs the following steps:
-- Rotates Image
-- Makes substack
-- Crops based on canvas size
-- Applies Convex Hull
-- Analyze particles
Macro is as follows:
files = getFileList(dir);
for (i = 0; i < files.length; i++)
inDir = dir+files[i];
if( File.isDirectory(inDir) )
print("Running entire process on: "+inDir);