Login  Register

Re: Advice for learner

Posted by Mark Hiner on Dec 05, 2014; 3:25pm
URL: http://imagej.273.s1.nabble.com/Advice-for-learner-tp5010725p5010787.html

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