how to make a Point selection in a plugin?

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

how to make a Point selection in a plugin?

Ben Liu-3
Hi,

How to make a Point selection in a plugin?
In a Macro i can use
        makeSelection("point", x, y);
to select a point ROI. But how to do in a plugin?
I tried to recorde the macro while selecting a point, but nothing shows up
in the macro, which is not the case for rectangle selection.
I tried to use
        IJ.makeSelection("point", x, y);
directly in my plugin, but it give errors.

Thanks.

Best wishes,
Bian Liu