Writing macros that invove plugins in ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Writing macros that invove plugins in ImageJ

Smellie, Andrew
Is it possible to write macros that can drive plugins?

I am recording a macro that invokes a plugin (in this case the ColorHistogram
plugin). I can invoke the macro to generate three histograms of rgb values,
but need to issue a command to the plugin to export the histogram to a text file
Is this possible?

The actual problem I am trying to solve is to generate histograms of rbg values
for an image autmatically from a command line macro. How might I achieve this?

Thanks

Andrew

Andrew Smellie, B.A., D.Phil. (Oxon)
Senior Investigator II
Arqule Inc.
19 Presidential Way,
Woburn, MA 01801
[hidden email]
Phone: 781-994-0559
Reply | Threaded
Open this post in threaded view
|

Re: Writing macros that invove plugins in ImageJ

Harry Parker
You can easily run plugins from macros, as the Macro
Recorder shows you, but you don't need a plugin to do
what you want to do.  Go to the "Built-in Functions"
link of the Macro Language page of the Online Docs,
http://rsb.info.nih.gov/ij/developer/macro/functions.html
, and search for "histogram".  I think you'll find
what you need is already built into the language.  

Please reply if you have a specific problem using the
builtin functions.

--- "Smellie, Andrew" <[hidden email]> wrote:

> Is it possible to write macros that can drive
> plugins?
>
> I am recording a macro that invokes a plugin (in
> this case the ColorHistogram
> plugin). I can invoke the macro to generate three
> histograms of rgb values,
> but need to issue a command to the plugin to export
> the histogram to a text file
> Is this possible?
>
> The actual problem I am trying to solve is to
> generate histograms of rbg values
> for an image autmatically from a command line macro.
> How might I achieve this?
>
> Thanks
>
> Andrew
>
> Andrew Smellie, B.A., D.Phil. (Oxon)
> Senior Investigator II
> Arqule Inc.
> 19 Presidential Way,
> Woburn, MA 01801
> [hidden email]
> Phone: 781-994-0559
>



--
Harry Parker
Systems Engineer
Imagers & Cameras
Dialog Semiconductor, Inc.


       
               
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com