How to find intersection point

2 次查看(过去 30 天)
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),

更多回答(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