a few notes about imagej macro language
TRANSCRIPT
A few notes about ImageJ Macro Language
Nasser DarwishBioimaging Facility, IST Austria
Based on the teaching materials of Fabrice Cordelières,Christian Tischer, and Kota Miura (EMBL Heidelberg)
Hello World! In 3 steps
1. Create a new macro
2. Type the code
3. Select IJ1 Macro language
4. But save it!
[File -> Save As…(“HelloWorld.ijm”)]
Functions, parameters and data types
Function print()
Semi-colon at the
end to indicate that
this function call
finishes hereFunction parameter: “Hello World!”
To see command reference:- Double click the command- [Tools > Open Help for Macro Function]
“Hello World!”Is a string, which is characters enclosed by quotation marks
Functions and variables
Macros and functions
A macro is a piece of code that can
be invoked independently
Macros can use multiple functions.
Functions are accessible inside the
macro.
Local and global variables
The global variable changes are preserved. Changes at the local variables
are lost out of context
To see command reference:- Double click the
command- [Tools > Open Help for
Macro Function]
https://imagej.nih.gov/ij/developer/macro/functions.html
Thank you!