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
315 B

3 years ago
  1. import ij.*;
  2. import ij.process.*;
  3. import ij.gui.*;
  4. import java.awt.*;
  5. import ij.plugin.filter.*;
  6. public class Filter_Plugin implements PlugInFilter {
  7. ImagePlus imp;
  8. public int setup(String arg, ImagePlus imp) {
  9. this.imp = imp;
  10. return DOES_ALL;
  11. }
  12. public void run(ImageProcessor ip) {
  13. ip.invert();
  14. }
  15. }