I can see at least two solutions to your problem. You could just combine all 1000 images into a single stack and use the image calculator to subtract one image (i.e. the one you call img2) from the stack of images created from your 1000 iamges. If you need the images as individual files, it is easy to split the stack afterwards into single images.
Alternatively, open your img2 and then use a loop to circle through all the images in your folder and do the subtraction image by image (a bit like you tried in your original code). However, you need to open the image that you want to subtract before you enter the loop - otherwise you have the problem that you will be asked to select an image for every cycle.
Hope this points you in the right direction.
Volko
PS. Please don't remove previous text when you reply to a post as it makes it impossible for anybody else to follow the discussion.
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Arreis
Sent: 15 March 2016 07:38
To:
[hidden email]
Subject: Re: Image Calculator: Image Slices minus Single Image
I see. What I mean is that
img1 as folder (containing 1000 image)
img2 as image0001.png
Then I need the img1 - img2 OR in other words all 1000 images minus one image.
-----
- Love, Arreis
--
View this message in context:
http://imagej.1557.x6.nabble.com/Image-Calculator-Image-Slices-minus-Single-Image-tp5015901p5015905.htmlSent 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