# How to specify 2-D coordinates of an object in matlab?

This is the scenario: I marked two axes (figure below) on a board and a camera(global vision system) sees the board. I want to make the vision system to recognize $X$ and $Y$ axes and specify coordinates of an object (preferably a colored one )in the form of $(x,y)$. How can I do that? is there any functionality in matlab to help me?

• Your axes only have an origin, and no ticks. So the $(x,y)$ will be relative to the image space – Laurent Duval Mar 24 '16 at 13:35
• @LaurentDuval, How it could be simplified?Do ticks work? – Rwy5 Mar 24 '16 at 13:41
• Just to be sure: do you want all the $(x,y)$ defining the grey disk? – Laurent Duval Mar 24 '16 at 13:47
• @LaurentDuval,In fact it's an object to be grabbed by a robotic arm,e.g. a ball. So I think the centroid points may be enough. – Rwy5 Mar 24 '16 at 13:52