Login  Register

Re: How to call Z-functions from a plugin on ImageJ

Posted by Danae on Sep 27, 2016; 11:02am
URL: http://imagej.273.s1.nabble.com/How-to-call-Z-functions-from-a-plugin-on-ImageJ-tp5017246p5017248.html

Gabriel Landini wrote
On Tuesday 27 Sep 2016 03:27:01 Danae wrote:
> I'm currently doing a plugin on JAVA for imagej that needs to call the
> function "Maximum Intensity Z-projection" which I know it's already in
> imagej if you go for "Image/Stacks/Z Project...".

You can find this out by using the macro recorder.
Choose "java" for the target language in the recorder window.
In you case what you are after is:

IJ.run(imp, "Z Project...", "projection=[Max Intensity]");

There might be another way of doing, like calling the code directly, but the
above would do too.

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


Thank you so much :)
It worked perfectly.
I've just started to programme for imagej and I don't know a lot of things ^^