Login  Register

Re: batch processing for a selection of images

Posted by Finn Peters on Apr 14, 2011; 4:11pm
URL: http://imagej.273.s1.nabble.com/batch-processing-for-a-selection-of-images-tp3684989p3684991.html

Hi Michael,

thanks a lot, this is just what I was looking for.

cheers,

Finn

> Hi Finn,
>
> if you want to do some processing for all images open in ImageJ, you
> can use a very simple macro:
>
> for (i=1; i<=nImages; i++) {
>   selectImage(i);
>   processImage();  //or simply put your processing commands here.
> }
>
> function processImage() {
>   run("Smooth");
>   //or whatever operation(s) you like...
>   //Make sure you leave no new images open,
>   //and don't close the current image.
> }
>
> Michael
> ________________________________________________________________
>
> On 14 Apr 2011, at 13:05, Finn Peters wrote:
>
>> Hi everyone,
>>
>> I wanted to ask if there is a possibility to apply the
>> process/batch/macro function to all open images or only a selection
>> of images within a folder? To batch process all images of a folder is
>> somewhat inconvenient for me.
>>
>> cheers,
>> Finn
>