The Scipting functionality in ImageJ already has this feature, it just needs to be exposed..
The Scipting functionality in ImageJ already has this feature, it just needs to be exposed..