compare using centroiding algorithm of image or binary image
이전 댓글 표시
Hi.
I want to calculate an object center(x,y) in an image.
There are two ways:
1.

(This is a centroid algorithm) I didn't convert into a binary image. Use these formula to calculate center
2.
Convert into a binary image first.
and also use these formula to calculate center...
I have tried, but the results from the two ways are just a little different I want to ask which way is better??? I want calculate the accurate center x,y. In other words, do I convert into a binary image to calculate the centroid or not?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!