How to find intersection point

조회 수: 1 (최근 30일)
Ezdihar
Ezdihar 2013년 6월 29일
Hi, I have an image with 4 colors.
I want to find the intersection points between four colors. How can I do that?
Thanks

채택된 답변

Matt J
Matt J 2013년 6월 29일
편집: Matt J 2013년 6월 29일
Maybe as follows,
A=imdilate(img==color1, ones(3));
B=imdilate(img==color2, ones(3));
C=imdilate(img==color3, ones(3));
D=imdilate(img==color4, ones(3));
S=regionprops(A & B & C & D,'Centroid');
locations=vertcat(S.Centroid),
  댓글 수: 1
Ezdihar
Ezdihar 2013년 6월 29일
Yes, Thanks a lot :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by