ImageJ API, Macro Help

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

ImageJ API, Macro Help

blood_on_ice
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