macros.Circle_Tool.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ij Show documentation
Show all versions of ij Show documentation
ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.
// 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);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy