Login  Register

Re: Simple Macro

Posted by ctrueden on Jan 26, 2016; 3:24pm
URL: http://imagej.273.s1.nabble.com/Simple-Macro-tp5015462p5015465.html

Hi Jessica,

> I am looking for help to write a simple macro to open different single
> images in the same folder, combine them into a stack, and save the
> stack under a different name in a different folder.

Try this:

* Press L for Command Finder
* Check the "Close window after running command" option
* Type "Record." and press enter to run the Plugins>Macros>Record...
function
* Press L again
* Type "Bio-Formats", down arrow, enter to run the File > Import >
Bio-Formats command
* Choose one of your files and press OK.
* Check the "Group files with similar names" option of the Bio-Formats
Importer Options dialog box.
* All your files should open as a single stack
* Use the File > Save As menu to save the stack to the desired output format
* Now look at your Recorder window. It contains your macro to repeat the
process. (You can prune out the "Command Finder" lines; they are
unnecessary for the macro to work.)

Regards,
Curtis

On Tue, Jan 26, 2016 at 7:40 AM, Jessica Davis <[hidden email]>
wrote:

> Hello everyone,
>
> I am looking for help to write a simple macro to open different single
> images in the same folder, combine them into a stack, and save the stack
> under a different name in a different folder.
>
> The images I want to combine have similar titles. For example:
> "w000_t000_tt000" , "w000_t000_tt001" , "w000_t000_tt002"... and
> "w001_t000_tt000" , "w001_t000_tt0001" , "w001_t000_tt002" ...
>
> Can this be done?
>
> Many thanks.
>
> Kind Regards,
>
> Jessica
>
> --
>
> Jessica Davis MSc.
>
> Conway Institute of Biomolecular and Biomedical Research,
> University College Dublin,
> Belfield, Dublin 4.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html