Login  Register

Background Subtraction on Stacks w/in Macro

Posted by dprosenberg on Jul 17, 2014; 4:48pm
URL: http://imagej.273.s1.nabble.com/Background-Subtraction-on-Stacks-w-in-Macro-tp5008807.html

Hi All,

I am attempting to process a large number of images with a macro that uses "Background Subtract". When done manually, I am prompted as to whether I want to process all of the images in the stack (upon which I select yes). I assumed that the following line should perform the same task within the macro, and the "stack" part of the code below accounted for the fact that I wanted to apply the background subtraction to both slices, yet when I run the macro in batch mode I am prompted to select whether I want to process all of the images in the stack for each image.

Does anyone know how I can bypass this, and why it might be occurring?


run("Subtract Background...", "rolling=35 stack");


Thanks!

Yours,
Danny