How to specify 2-D coordinates of an object?

조회 수: 1 (최근 30일)
Ali Tareq
Ali Tareq 2016년 3월 23일
댓글: Image Analyst 2016년 3월 24일
This is the scenario: I marked two axis (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 axis 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?

답변 (1개)

Image Analyst
Image Analyst 2016년 3월 23일
You can do color segmentation to get the red, black, brown, and blue pixels. You get a binary image that is essentially a map of where those color pixels are in the image. Then use find() on the binary image to get the x and y coordinates of every pixel of that color.
That said, I don't think you described your problem precisely enough so I don't think my answer is what you want, though it does what you asked.
  댓글 수: 2
Ali Tareq
Ali Tareq 2016년 3월 24일
Thanks for your help. the question has been edited. I think it's now more clear.
Image Analyst
Image Analyst 2016년 3월 24일
See my Image Segmentation Tutorial. It goes over how to find centroids of objects in an image. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by