>>261
ImageJ2ならPythonでスクリプトが書けます。
https://imagej.net/ImageJ2_Python_Scripts
ImageJ1ならJythonというものを使えばよさそうです。
https://imagej.net/Jython_Scripting
http://marcora.caltech.edu/jython_imagej_howto.htm