Hi all,
I need an advice. Though I manage to make my own macros to automate my needs I would like to write plugins. If I want a serious approach, what would be better, to learn Java or to learn Python? Thanks for your advice -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Pedro,
>If I want a serious approach, what would be better, to learn Java or to learn Python? If you ever want to work on the ImageJ source code <http://imagej.net/Source_code>, you should learn Java. It's also a good choice if you're going to be writing plugins that provide extensible functionality you expect others to consume and build off. Python scripting <http://imagej.net/Jython_Scripting> can lead to more succinct implementations, which can be rapidly developed and easier to understand. Since you can choose either, it could be worth spending a little time on tutorials for both languages to see if either "feels" like a better fit to you (e.g., I personally started by learning BASIC and then C.. but things never really clicked until I wrote Java code). Hope that helps. Best, Mark On Tue, Dec 2, 2014 at 1:05 PM, Pedro J Camello <[hidden email]> wrote: > Hi all, > > I need an advice. Though I manage to make my own macros to automate my > needs I would like to write plugins. If I want a serious approach, what > would be better, to learn Java or to learn Python? > Thanks for your advice > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Pedro J CamelloDr Pedro J Camello
Hi Pedro,
>The point is: can Python scripts access and manipulate pixels and their values? Certainly! There are great examples on the wiki <http://imagej.net/Jython_Scripting#Jython_tutorials_for_ImageJ>. >Is it possible to write a plugin using a Python script? Absolutely. As mentioned in the Jython workflow section <http://imagej.net/Jython_Scripting#Workflow_for_creating_Jython_scripts>, anything in the /plugins sub-directory can be discovered automatically. Once you start developing scripts (or Java plugins if you go that route) you could even create your own update site <http://imagej.net/Update_Sites> to distribute them. >My intend was to learn Python If Python seems easier to you then definitely spend some time on the Jython scripting wiki page to feel comfortable creating scripts and calling them from ImageJ. (Side note: sorry if it's confusing to switch terminology between Jython and Python - in case you were wondering, Jython <http://en.wikipedia.org/wiki/Jython>is a Java-based implementation of Python, allowing you to write Python scripts but have them interpreted by a Java-based application like ImageJ) Let us know if you run into any roadblocks. The community is here to help! Best, Mark On Fri, Dec 5, 2014 at 5:39 AM, Pedro Javier Camello Almaraz < [hidden email]> wrote: > Hi Mark, > > thanks for your reply. The point is: can Python scripts access and > manipulate pixels and their values? Is it possible to write a plugin using > a Python script? My intend was to learn Python (for a beginner with basic > expereince with Visual basis it seems easier than Java) but only if it is > really useful to write ImageJ plugins > > regards > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
If you are doing python, you also should consider using scikit image. Id
recommend figuring out what analysis you need to do before deciding which tools and languages to undertake. On Dec 5, 2014 10:26 AM, "Mark Hiner" <[hidden email]> wrote: > Hi Pedro, > > >The point is: can Python scripts access and manipulate pixels and their > values? > > Certainly! There are great examples on the wiki > <http://imagej.net/Jython_Scripting#Jython_tutorials_for_ImageJ>. > > >Is it possible to write a plugin using a Python script? > > Absolutely. As mentioned in the Jython workflow section > <http://imagej.net/Jython_Scripting#Workflow_for_creating_Jython_scripts>, > anything in the /plugins sub-directory can be discovered automatically. > Once you start developing scripts (or Java plugins if you go that route) > you could even create your own update site <http://imagej.net/Update_Sites > > > to distribute them. > > >My intend was to learn Python > > If Python seems easier to you then definitely spend some time on the Jython > scripting wiki page to feel comfortable creating scripts and calling them > from ImageJ. (Side note: sorry if it's confusing to switch terminology > between Jython and Python - in case you were wondering, Jython > <http://en.wikipedia.org/wiki/Jython>is a Java-based implementation of > Python, allowing you to write Python scripts but have them interpreted by a > Java-based application like ImageJ) > > Let us know if you run into any roadblocks. The community is here to help! > > Best, > Mark > > On Fri, Dec 5, 2014 at 5:39 AM, Pedro Javier Camello Almaraz < > [hidden email]> wrote: > > > Hi Mark, > > > > thanks for your reply. The point is: can Python scripts access and > > manipulate pixels and their values? Is it possible to write a plugin > using > > a Python script? My intend was to learn Python (for a beginner with basic > > expereince with Visual basis it seems easier than Java) but only if it is > > really useful to write ImageJ plugins > > > > regards > > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |