ImageJ base code to get access to all the classes and their methods to test new Plugins. https://imagejdocu.tudor.lu/howto/plugins/the_imagej_eclipse_howto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
615 B

// This example macro tool creates circular selections.
// Press ctrl-i (Macros>Install Macros) to reinstall after
// making changes. Double click on the tool icon (a circle)
// to set the radius of the circle.
// There is more information about macro tools at
// http://imagej.nih.gov/ij/developer/macro/macros.html#tools
// and many more examples at
// http://imagej.nih.gov/ij/macros/tools/
var radius = 20;
macro "Circle Tool - C00cO11cc" {
getCursorLoc(x, y, z, flags);
makeOval(x-radius, y-radius, radius*2, radius*2);
}
macro "Circle Tool Options" {
radius = getNumber("Radius: ", radius);
}