Re: batch processing for a selection of images
Posted by
melkor2.0 on
Apr 14, 2011; 1:21pm
URL: http://imagej.273.s1.nabble.com/batch-processing-for-a-selection-of-images-tp3684989p3684992.html
Hello, What if operating with all the files within a directory, you want to
separate the channels and make compositions? you should have to identify the
new windows and include in the macro to continue operating... in my case I
want to separate the channels of all the files within a directory, and make
those compositions
On 14 April 011 15:13, Michael Schmid <
[hidden email]> wrote:
> 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
>>
>