how to detect circle object on video

조회 수: 2 (최근 30일)
ali
ali 2023년 10월 26일
답변: Image Analyst 2023년 10월 26일
hi every one , i'm newbi in this field and dont had exprince of working this field or give me good guideline that put me in way that help me achive my goal.... my teacher assing me task that find distance between central two object which are bright and move right of picture.
kindly help me
  댓글 수: 1
Cris LaPierre
Cris LaPierre 2023년 10월 26일
Here are some resources that can help you get started from MathWorks

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

채택된 답변

Image Analyst
Image Analyst 2023년 10월 26일
It's a generic, general purpose demo of how to threshold an image to find bright blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
Be sure and ask regionprops for the centroid.
props = regionprops(mask, 'Centroid');
xyCentroids = vertcat(props.Centroid);
Run this on each image to find the centroids in each image so you get xyCentroids1 and xyCentroids2. You can find the distances between the list of (x,y) centroids in each picture using pdist2 or just the sqrt function.
distances = pdist2(xyCentroids1, xyCentroids2)

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by