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

조회 수: 1 (최근 30일)
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

답변 (1개)

darova
darova 2021년 2월 18일
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
Megha Emerse
Megha Emerse 2021년 2월 18일
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

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by