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

Some useful procedures


There is a very extensive compilation of all the functions available in the macro language on the ImageJ website (http://rsbweb.nih.gov/ij/developer/macro/functions.html). In this section, we are offering a brief explanation of some of the operations that you are most likely to use. Instead of just listing the name of the necessary functions, we will ask some common questions and then answer them using code.

Note that finding out what command does a specific function is very easy: just start the recorder and run the command you are interested on running in your macro. You can then copy and paste the resulting line and modify the parameters accordingly.

Opening an image from a macro

There are two ways to open an image file from your hard disk (or from a URL). For an interactive way (you need input from the user, typically the file path) just run the following line:

open();

A dialog will appear asking you for the file location inside your hard disk. Just double click on it...

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