x/y coordinates of marked points

Image processing, astrometry, photometry, etc.
Post Reply
User avatar
Rudi
Posts: 159
Joined: 08 Jan 2019, 04:47

x/y coordinates of marked points

Post by Rudi » 21 Apr 2024, 03:40

Is there a way to get a list of all marked points in an image?
X/Y pixel coordinate will be fine.
/Rudi

fabdev
Posts: 495
Joined: 03 Dec 2018, 21:43

Re: x/y coordinates of marked points

Post by fabdev » 24 Apr 2024, 00:26

Yes, using a script:

Image.Points.Count

returns how many points are selected.
and:

x,y = Image.Points.Get(i)

returns the coordinates of the #i point.
See in the Guide: Scripts / Function(Images) , "Points and Rectangles" near the end of the page.
Fabio.

User avatar
Rudi
Posts: 159
Joined: 08 Jan 2019, 04:47

Re: x/y coordinates of marked points

Post by Rudi » 24 Apr 2024, 03:43

Thanks Fabio! Just what I needed...
/Rudi

Post Reply