Posted by
gerrit on
URL: http://imagej.273.s1.nabble.com/looking-for-a-simple-Maven-project-implementing-an-ImageJ-2-x-plugin-tp5011003p5011110.html
I succeeded in making a maven project, but I’m still struggling in finding demo code and the api for writing a simple plugin.
For instance how to code a pluginfiler in imagej2?
public class Get_blue_region implements PlugInFilter {
ImagePlus imp;
boolean DEBUG = false;
public int setup(String arg, ImagePlus imp) {
this.imp = imp;
if (arg.equals("about")) {
showAbout();
return DONE;
}
return DOES_RGB;
}
public void run(ImageProcessor ip) {
ImagePlus calim = new ImagePlus("Blue Part", ip);
…………….
}
}
sorry if this is a silly question, but I got stuck in all wikis and github repositories.
Gerrit.
On 20 Dec 2014, at 19:11, Polder, Gerrit <
[hidden email]<mailto:
[hidden email]>> wrote:
thanks Mark, this is exactly where I was looking for.
Gerrit.
On 20 dec. 2014, at 06:00, IMAGEJ automatic digest system <
[hidden email]<mailto:
[hidden email]>> wrote:
Hi Gerrit,
Now I like to switch to IJ2, I’m wondering whether there is an IJ2 example
project available.
The ImageJ-tutorials <
https://github.com/imagej/imagej-tutorials> project
is the intended starting point for developers. There is also an accompanying
entry <
http://imagej.net/Writing_ImageJ2_plugins> in the Development
<
http://imagej.net/Development> section of the ImageJ wiki.
Thanks for the interest in ImageJ2 - let us know if you have any questions
or run into problems!
Best,
Mark
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html