Re: batch processing for a selection of images
Posted by
Albert Cardona-2 on
Apr 14, 2011; 2:26pm
URL: http://imagej.273.s1.nabble.com/batch-processing-for-a-selection-of-images-tp3684989p3684994.html
2011/4/14 Ramon <
[hidden email]>:
> 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
Then don't use a macro. Macros work best for recording a sequence of
commands and then wrapping that in a loop and apply it to many images
or many slices of an image.
If your macro opens new windows, its complexity will escalate very
quickly--it's all related to the central concept of the "current
image" in ImageJ. When the current image changes in an unpredictable
way, it's time to use something other than a macro. For example, use a
plugin instead, or a script in python that gives you the same power of
a plugin without having to compile or care about class types.
Albert
--
http://albert.rierol.net