Login  Register

ImageJ API, Macro Help

Posted by blood_on_ice on Dec 31, 2007; 3:34pm
URL: http://imagej.273.s1.nabble.com/ImageJ-API-Macro-Help-tp3697669.html

Hy!

I've an application which grabs a frame from a webcam (return value: type Buffer). It's possible to process this image in my application with the ImageJ API? I've recorded a macro which does the steps i want to do with my image:

run("Window/Level...");
setMinAndMax(50, 104);
run("Make Binary");
run("Analyze Particles...", "size=200-500 circularity=0.00-1.00 show=Ellipses display clear");

So can I do this steps within my application with the ImageJ API? It's possible to get the Analyze Particles Results back as return values, so i can work with this results in my application? Is there any source available?

If this isn't possible, how can I run my macro in silent mode from my application and get the measurements back to my app?

Thanks for your help!

Kind regards,
Peter