Comparing the dots in two images and eliminating the dots which don't have pairs

1 vue (au cours des 30 derniers jours)
Megha Emerse
Megha Emerse le 18 Fév 2021
Commenté : Megha Emerse le 18 Fév 2021
Hi,
I have two images which is basically dot patterns. One is an initial image where there is only round dots. Second image is taken when we place a thin film on water above the dot pattern where some dots are dilated and some are convereged. I want to compare these dots in both the images and eliminate those which does not have the corresponding pairs.If anyone could resolve the problem please message.
Thanks

Réponses (1)

darova
darova le 18 Fév 2021
See this example
A1 = imread('image1.png');
A2 = imread('image2.png');
I1 = rgb2gray(A1); % convert ot grayscale
I2 = rgb2gray(A2);
B1 = im2bw(I1); % binarize image
B2 = im2bw(I2);
BB = B1 & B2; % find dots on both images
II = I1 .* BB;
imshow(II)
  1 commentaire
Megha Emerse
Megha Emerse le 18 Fév 2021
Thanks,
But I have to compare both the images and find the corresponding pair and delete the dots which dont have the pair automatically.
Regards

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by