Page MenuHomec4science

DEVIL_.java
No OneTemporary

File Metadata

Created
Sat, Sep 14, 13:16

DEVIL_.java

package ch.epfl.biop;
import ij.IJ;
import ij.ImageJ;
import ij.ImagePlus;
import ij.plugin.PlugIn;
// here is the User Interface that runs the class DEVIL.java
public class DEVIL_ implements PlugIn {
@Override
public void run(String arg0) {
// TODO Auto-generated method stub
int particle_size = 25;
DEVIL.run(particle_size);
}
/**
* Main method for debugging.
*
* For debugging, it is convenient to have a method that starts ImageJ, loads
* an image and calls the plugin, e.g. after setting breakpoints.
*
* @param args unused
*/
public static void main(String[] args) {
// set the plugins.dir property to make the plugin appear in the Plugins menu
Class<?> clazz = DEVIL_.class;
String url = clazz.getResource("/" + clazz.getName().replace('.', '/') + ".class").toString();
String pluginsDir = url.substring("file:".length(), url.length() - clazz.getName().length() - ".class".length());
System.setProperty("plugins.dir", pluginsDir);
// start ImageJ
new ImageJ();
// open the Clown sample
//ImagePlus image = IJ.openImage("http://imagej.net/images/clown.jpg");
//image.show();
// run the plugin
IJ.runPlugIn(clazz.getName(), "");
}
}

Event Timeline