Dear all,
I am new to ImageJ macro writing and from my limited experience I have trouble figuring out why in a for loop containing a few if/else statements in the Log after each loop pass apart from my regular results collection two 1 digits are being printed.
There is only one print command in the loop that is gathering results from area and cell count calculations and there should not be any additional input into the Log. I am suspecting that ImageJ has some native functionality of printing TRUE values from if/else statements, but I can't figure out if it's true and if it is how to fix that.
A possible option would be to force him to print to a specific line in Log after each loop and to override the 1 from last loop iteration, but this also poses a challenge for my coding skills.
Thanks in advance for any input. I know that it's a bit complicated so if you have any questions, please let me know.
Cheers,
Bartek
EDIT: Found the culprit - File.delete() function is printing 1 (if TRUE - deleting the file) or 0 (if FALSE - no file deleted/found) into Log. Do you have any ideas how to deal with this?