Posted by
gerrit on
Jan 07, 2015; 7:54pm
URL: http://imagej.273.s1.nabble.com/looking-for-a-simple-Maven-project-implementing-an-ImageJ-2-x-plugin-tp5011003p5011117.html
Dear Wayne,
thanks for the prompt reply, my question was indeed not clear stated.
Yes this is a ImageJ1 plugin, but since I need to add some functionality to it I thought it would be worthwhile to convert it to the current ImageJ platform, in order to make it future proof.
As ImageJ2 now is the production release I decided to give it a try.
Is it true that questions related to the development of user plugins should be addressed to imagej-devel?
I’m also curious about other plugin developers, how many still develop in ImageJ1, and how many switched already to ImageJ2?
By the way I already found part of the problem. The Image I tested my plugin tryout on was an old ImageJ image, instead of a new dataset ‘image’. After enabling the SCIFIO library I could input an image in my plugin.
But still I think need more documentation and examples, kind of ‘guide for switchers’.
best regards,
Gerrit.
On 7 jan. 2015, at 17:26, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]<mailto:
[hidden email]>> wrote:
Dear Polder,
Your plugin is not an ImageJ2 plugin. It is an ImageJ plugin that you can easily compile and run it using the Plugins>Compile and Run command. Questions about ImageJ2 and mavin should be sent to the image-dev mailing list.
http://imagej.net/mailman/listinfo/imagej-develBest regards,
-wayne
On Jan 7, 2015, at 10:40 AM, Polder, Gerrit <
[hidden email]<mailto:
[hidden email]>> wrote:
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]><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]><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--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html