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.

17 lines
306 B

2 years ago
  1. import ij.*;
  2. import ij.process.*;
  3. import ij.gui.*;
  4. import java.awt.*;
  5. import ij.plugin.*;
  6. import ij.plugin.frame.*;
  7. public class My_Plugin implements PlugIn {
  8. public void run(String arg) {
  9. ImagePlus imp = IJ.getImage();
  10. IJ.run(imp, "Invert", "");
  11. IJ.wait(1000);
  12. IJ.run(imp, "Invert", "");
  13. }
  14. }