a few notes about imagej macro language

8
A few notes about ImageJ Macro Language Nasser Darwish Bioimaging Facility, IST Austria Based on the teaching materials of Fabrice Cordelières, Christian Tischer, and Kota Miura (EMBL Heidelberg)

Upload: others

Post on 07-Apr-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A few notes about ImageJ Macro Language

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)

Page 2: A few notes about ImageJ Macro Language

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”)]

Page 3: A few notes about ImageJ Macro Language

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

Page 4: A few notes about ImageJ Macro Language

Functions and variables

Page 5: A few notes about ImageJ Macro Language

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.

Page 6: A few notes about ImageJ Macro Language

Local and global variables

The global variable changes are preserved. Changes at the local variables

are lost out of context

Page 7: A few notes about ImageJ Macro Language

To see command reference:- Double click the

command- [Tools > Open Help for

Macro Function]

https://imagej.nih.gov/ij/developer/macro/functions.html

Page 8: A few notes about ImageJ Macro Language

Thank you!