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

Running macros


So, now we have recorded every step needed for the analysis and stored in it a text file. What if we want to run it again? This is done by navigating to the Plugins | Macros | Run... menu option. A file chooser dialog will pop up and we will have to select the file that contains the commands we want to execute. With the tuberculosis image open, choose that menu option, and then the text file we just saved. All the commands will be run one by one and we will end up with exactly the same result as before. Try running the macro for the tuberculosis_full.tif measurements and see if you get the same result we got at the end of the previous chapter. In our tests, it takes about two seconds to compute all the calculations! Now you can compare that to the manual way and grasp the power of ImageJ for image processing.

It is also possible to run a macro while we are writing it. This is normally done during the coding process, so we can be sure that it does what it is supposed to do before...

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