Login  Register

Re: Place elliptical ROI with mouse click

Posted by jmutterer on Jun 23, 2009; 6:30am
URL: http://imagej.273.s1.nabble.com/Place-elliptical-ROI-with-mouse-click-tp3691999p3692005.html

Andrew,
install the following tool macro :

macro 'myTool Tool - C000O4488D88' {
  getCursorLoc(x, y, z, modifiers);
  left=16;
  while ((modifiers&left)!=0) {
    getCursorLoc(x, y, z, modifiers);
    makeOval(x-6,y-6,12,12);
    wait(10);
  }
}


Jerome

On Tue, Jun 23, 2009 at 4:30 AM, aweitz <[hidden email]> wrote:

> Hi,
>
> I'd like to modify the elliptical ROI tool.  Currently, the tool only
> places
> ROIs with click and drag (to specify ellipse size).  A click without a drag
> does nothing.  Instead, I'd like the click (without a drag) to place an ROI
> of set size (12x12) at the area of the mouse click.  The click and drag
> behavior should remain unmodified.
>
> Can anyone tell me where I can look in the code to make this modification?
>
> Thanks!
> Andrew
> --
> View this message in context:
> http://n2.nabble.com/Place-elliptical-ROI-with-mouse-click-tp3139919p3139919.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>