In two processed images, one shows 3 centroids and another shows 4 centroids. How to eliminate this extra centroids from centroids array.
조회 수: 6 (최근 30일)
이전 댓글 표시
I have two images taken from two stereo cameras in which one contain three white objects and another contain four white objects. I processed both images to find out the centroids. Ofcourse first one give three centroids and second give four centroids and I stored these centroids into arrays called 'centroids1' and 'centroids2'. Now, I want two things here. First, if in 'centroids1' first entry is for object 1, then in 'centroids2' also, first entry should be for object 1 only, likewise for all objects. Second, I want to eliminate any extra centroids present in any of 'centroids' array i.e. I want only corresponding centriods in both 'centroids1' and 'centroids2' array.
I'm attaching my images and code here.
댓글 수: 0
채택된 답변
Dima Lisin
2016년 2월 29일
Hi Naseeb,
The triangulate function can return reprojection errors, which can tell you whether or not a match is correct.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!