help on selection manipulation

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

help on selection manipulation

wadih
Dear all,
1. Do you know of a way to connect the lines of a multipoint selection so as to obtain a polygon. I have multiple selections saved (as multipoint selections) and would like to get the corresponding polygons.
2. Is there a way to get the XY coordinates of the different points making up a polygon selection?
many thanks for your help,
Wadih


     
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: help on selection manipulation

Krs5
Dear Wadih,

For point 1 is Edit > Selection > Convex Hull doing what you want?

Best wishes

Kees

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of wadih
Sent: 06 November 2013 16:14
To: [hidden email]
Subject: help on selection manipulation

Dear all,
1. Do you know of a way to connect the lines of a multipoint selection so as to obtain a polygon. I have multiple selections saved (as multipoint selections) and would like to get the corresponding polygons.
2. Is there a way to get the XY coordinates of the different points making up a polygon selection?
many thanks for your help,
Wadih


     
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: help on selection manipulation

Michael Schmid
In reply to this post by wadih
Hi Wadih,

you can use a macro for getting the point coordinates or the vertices of a polygon - it's the same for both:

getSelectionCoordinates(xCoordinates, yCoordinates) gives you two arrays with the x and y coordinates of the points.
  http://rsb.info.nih.gov/ij/developer/macro/functions.html#getSelectionCoordinates

For printing the coordinates, see the first macro in
  http://rsb.info.nih.gov/ij/macros/SelectionCoordinates.txt


Michael
________________________________________________________________
On Nov 6, 2013, at 17:13, wadih wrote:

> Dear all,
> 1. Do you know of a way to connect the lines of a multipoint selection so as to obtain a polygon. I have multiple selections saved (as multipoint selections) and would like to get the corresponding polygons.
> 2. Is there a way to get the XY coordinates of the different points making up a polygon selection?
> many thanks for your help,
> Wadih

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html