ROI manager

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

ROI manager

Douglas Benn-2
I am trying to take an image mouse click x,y coordinates and testing to see if the coords are inside or outside a ROI.

The macro language does not list a cmd for determining if x,y coords are inside a ROI.
roiManager(cmd)
Runs an ROI Manager command, where cmd must be "Add", "Add & Draw", "Update", "Delete", "Deselect", "Measure", "Draw", "Fill", "Label", "Combine", "Split", "Sort", "Reset" or "Multi Measure".

Is there a plugin which will do the job?

Thanks.

Douglas


Dr Douglas K Benn, BDS,DDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor and Director of Oral & Maxillofacial Radiology
Dept of General Dentistry
Creighton University Dental School
2802 Webster St, Boyne 210
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager

vischer
> I am trying to take an image mouse click x,y coordinates and testing to see if the coords are inside or outside a ROI.

Benn, see:

http://imagej.nih.gov/ij/macros//GetCursorLocDemo.txt

and:

selectionContains(x, y)
Returns true if the point x,y is inside the current selection. Aborts the macro if there is no selection. Requires 1.44g.

Norbert Vischer
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager

Douglas Benn-2
Dear Norbert,

Great.

Thank you.

Douglas

Dr Douglas K Benn, BDS,DDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor and Director of Oral & Maxillofacial Radiology
Dept of General Dentistry
Creighton University Dental School
2802 Webster St, Boyne 210
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094



-----Original Message-----
From: ImageJ Interest Group on behalf of Norbert Vischer
Sent: Mon 5/30/2011 6:21 PM
To: [hidden email]
Subject: Re: ROI manager
 
> I am trying to take an image mouse click x,y coordinates and testing to see if the coords are inside or outside a ROI.

Benn, see:

http://imagej.nih.gov/ij/macros//GetCursorLocDemo.txt

and:

selectionContains(x, y)
Returns true if the point x,y is inside the current selection. Aborts the macro if there is no selection. Requires 1.44g.

Norbert Vischer