Totally new to Java,
From a video with changing light intensity I extract a stack of images. I would like to normalize the brigthness/contrast in this stack of images (beside doing other things). I found a plugin that might work for me Stack_Normalizer.class, that you can find here https://imagej.nih.gov/ij/plugins/normalizer.html
I have many images to process so I created a loop. Here it comes my problem: when I run the plug in in the for loop it asks me to input the minimum and maximum values wanted (always the same in may case), since I have many thousands images I cannot to it manually (it works but it’s super long), how can I set this values automatically in the pup up window? I tried setMinimum(0), setMaximum(255) but no success. Here is part of the loop:
makeRectangle(126, 20, 433, 422); run("Crop"); run("Stack Normalizer");
here I would need to set the values in the pop up window. Then the loop continue…
run("8-bit"); setThreshold(0,79); run("Threshold");
Thanks a lot for any input, I hope is not a too common question, unfortunately I could not find an answer in the forum!!