I have a problem with scripting. I have an IJm macro in which I handle an image stack A.tif. The results go into a stack B (plain B). I handle the stacks in a loop over x,y and the stack channels. To access the values in the stacks alternatingly in the loop I give a selectImage(“A.tif”), read the values that I need, do the calculations and then store the results in B after a selectImage(“B”).
This code runs OK
To prevent flicker and a slow code I want to hide the images, so before the loop I do selectImage(“A.tif”); setBatchMode(“hide”); and the same for image B.
Problem: when I run this code I get an error: “A.tif” not found in line …
I have been trying a lot of things… without success.
Can anyone give me a hint ?