Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Image Processing with ImageJ

You're reading from   Image Processing with ImageJ Get familiar with one of the world's most highly regarded Digital Image processors, ImageJ. This tutorial takes you through every aspect of viewing, processing, and analysing 2D, 3D, and 4D images, clearly and comprehensively.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781783283958
Length 140 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

The batch mode


One common operation you will probably need to do at some point is to apply a macro to a large number of images. You have an option of using the setBatchMode(arg) function and code the logic for opening and closing each file. However, there is a simpler way of accomplishing this, which is just navigating to the Process | Batch | Macro... menu option. When you run it you will get a dialog similar to the following one:

This dialog will allow you to apply a macro to all the images contained inside a given folder (Input...) and will store the result into another one (Output...) with the image format selected in the Output Format option. If you leave the output folder field empty, nothing will be saved (you may want to do this if your macro consists of a list of measurements and does not involve any image modification). You can write your macro code in the textbox or in an open (Open...) one that you have coded previously. The Test button runs the macro on the first image of the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime