This page is a primer of ImageJ2 only Python scripts. It means that the examples included here avoid IJ1 as much as possible, unless it’s really necessary.
Note that all the scripts of this page are links from https://github.com/imagej/imagej-scripting/tree/master/src/main/resources/script_templates/ImageJ2.
Crop an image
Rotate all the frames of a stack
Subtract a stack to its first image
Apply DOG Filter
Apply a mask
Retrieve objects/particles from a mask
Manual Simple Registration on Stack