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

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/How-to-call-Z-functions-from-a-plugin-on-ImageJ-tp5017246p5017247.html

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