Login  Register

Re: Image Calculator: Image Slices minus Single Image

Posted by Straub, Volko A. (Dr.) on Mar 15, 2016; 5:05am
URL: http://imagej.273.s1.nabble.com/Image-Calculator-Image-Slices-minus-Single-Image-tp5015901p5015903.html

Dear Arreiss,

The image calculator can subtract a single image from every image in a
stack. For example, the code below will calculate the average for an
open stack and then subtract it from all images in the stack:

     run("Z Project...", "projection=[Average Intensity]");
     rename("Average");
     imageCalculator("Subtract create 32-bit stack", image,"Average");

There is no need to put this inside a loop and carry out the operation
for each image separately.

Hope this helps,
Volko

On 15/03/2016 03:26, Arreis wrote:

> Is there any way to automate Subtraction of (Image Sequence) - (Single Image)
> by employing Image Calculator in Macro?
>
> All I can find is the thread for subtraction of single images or subtraction
> of one image stack to another image stack.
>
>
>
>
>
> -----
> - Love, Arreis
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Image-Calculator-Image-Slices-minus-Single-Image-tp5015901.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html