Finding X and Y coordinates of a single white blob on a black background

조회 수: 5 (최근 30일)
I have a series of images which I need to find the x,y coordinates for a single white blob on black background. I would like coordinates to be taken from the center of the image. Thank you.

채택된 답변

Image Analyst
Image Analyst 2013년 9월 18일
The blobs are the coins from the standard MATLAB demo image. It finds the centroids of all of them. You just need to subtract the number of rows and columns divided by 2 to get the coordinates referenced to a new coordinate system where the origin is in the middle of the picture.
  댓글 수: 6
Image Analyst
Image Analyst 2013년 9월 23일
You have a loop that says
for j=1
so of course it does only 1 image.
David Bridges
David Bridges 2013년 9월 24일
Finally figured it out, thanks for your help

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

추가 답변 (0개)

카테고리

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