How to find intersection point

2 vues (au cours des 30 derniers jours)
Ezdihar
Ezdihar le 29 Juin 2013
Hi, I have an image with 4 colors.
I want to find the intersection points between four colors. How can I do that?
Thanks

Réponse acceptée

Matt J
Matt J le 29 Juin 2013
Modifié(e) : Matt J le 29 Juin 2013
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 commentaire
Ezdihar
Ezdihar le 29 Juin 2013
Yes, Thanks a lot :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modify Image Colors dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by