Login  Register

Polygone and polyline tools in macro language

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Polygone and polyline tools in macro language

lechristophe
419 posts
Hi,

Sorry to ask again but maybe my request was lost in the middle of summer:
does someone have a macro tool implementation of the standard ImageJ tools ?
I'm specifically looking for the polygon and polyline tools. I looked at the
java source code for these tools but it is too far from macro language to be
easily translated. The example macro tools at
http://rsb.info.nih.gov/ij/macros/tools/ are useful, bot I found nothing
close enough to the polygon/polyline tools... I need that to create new
tools based on these default tools (for example, a polyline that would
display the size of its different segments and the total size in the status
bar during tracing).

Thanks a lot,

Christophe
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Polygone and polyline tools in macro language

Michael Schmid
2136 posts
Hi Christophe,

maybe there is an easier solution - use the existing polyline tool and just calculate the quantities of interest in a plugin?

You can use the Dynamic Profiler on the ImageJ web site as a starting point. Remove everything related to the plot window and the background thread. Instead of the 'doUpdate = true' commands, call a method that displays what you want to know via IJ.showStatus.

Michael
_______________________________________________________________________________

On 2011-Sep-02, at 11:59, Christophe Leterrier wrote:

> Hi,
>
> Sorry to ask again but maybe my request was lost in the middle of summer:
> does someone have a macro tool implementation of the standard ImageJ tools ?
> I'm specifically looking for the polygon and polyline tools. I looked at the
> java source code for these tools but it is too far from macro language to be
> easily translated. The example macro tools at
> http://rsb.info.nih.gov/ij/macros/tools/ are useful, bot I found nothing
> close enough to the polygon/polyline tools... I need that to create new
> tools based on these default tools (for example, a polyline that would
> display the size of its different segments and the total size in the status
> bar during tracing).
>
> Thanks a lot,
>
> Christophe
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Polygone and polyline tools in macro language

Rasband, Wayne (NIH/NIMH) [E]
1064 posts
In reply to this post by lechristophe
On Sep 2, 2011, at 5:59 AM, Christophe Leterrier wrote:

> Hi,
>
> Sorry to ask again but maybe my request was lost in the middle of summer:
> does someone have a macro tool implementation of the standard ImageJ tools ?
> I'm specifically looking for the polygon and polyline tools. I looked at the
> java source code for these tools but it is too far from macro language to be
> easily translated. The example macro tools at
> http://rsb.info.nih.gov/ij/macros/tools/ are useful, bot I found nothing
> close enough to the polygon/polyline tools... I need that to create new
> tools based on these default tools (for example, a polyline that would
> display the size of its different segments and the total size in the status
> bar during tracing).

There is a macro version of the polygon tool at

    http://imagej.nih.gov/ij/macros/tools/PolygonTool.txt

It requires the ImageJ 1.45n daily build.

-wayne