Recording macros is a simple way to automate repetitive tasks.
Reusable snippets of code for general tasks can be found on the FIJI WIKI here
Macros are provided here as .txt files. To get them working in (FI)IJ follow: open (file>new>script> file>open [*.txt] then set language> imagej macro.
Run to get started…