Re: batching imageCalculator (please NOT spam)
Posted by
Greg Joss on
Jul 05, 2006; 11:03am
URL: http://imagej.273.s1.nabble.com/batching-imageCalculator-please-NOT-spam-tp3702275p3702281.html
without checking for mismatch errors etc
(see File.exists(path)
<
http://rsb.info.nih.gov/ij/developer/macro/functions.html>)
//_____________________________________
dirA = getDirectory("Choose SourceA Directory ");
dirB = getDirectory("Choose SourceB Directory ");
fs=getFileList(dirA);
for(i=0;i<fs.length;i++){
open(dirA+File.separator+fs[i]);
a=getImageID;
open(dirB+File.separator+fs[i]);
b=getImageID;
imageCalculator("Subtract create",a,b);
}
//_____________________________________
>>>
[hidden email] >>>
I don't know why the server consider my message as spam...
anycase...
> Hi everybody, this is my first post.
>
> I've two directories:
> dirA = getDirectory("Choose
> SourceA Directory ");
> dirB = getDirectory("Choose
> SourceB Directory ");
> both containing a lot of image files with the same title (1, 2, 3).
>
> I need to write a macro that subtract image B/1 to A/1, B/2 to
> A/2, B/3 to A/3...
>
> some suggestions?
>
> Gianpaolo Rando
> University of Milan