Apply macro to ImagePlus object using API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
wex
Reply | Threaded
Open this post in threaded view
|

Apply macro to ImagePlus object using API

wex
Good day,
I'm programming own application in Java, which used ImageJ. Is there a way, to apply macro to ImagePlus object without showing it?

Example code:

public void doWork() throws OperatorException {
        ImagePlusIOObject ioIm = inImg.getData();
        ImagePlus image = ioIm.getImage();
        /*
         * there apply user defined macro to image
         */
        outImg.deliver(ioIm);
}


Thank you for any ideas.