how to accurately remove objects from an image which are also present in another image?

1 vue (au cours des 30 derniers jours)
I am trying to remove white spots in an image which lie on the blood vessels.I have tried this code and some spots which are not present on blood vessels are also being removed and I also found that size and shape of some whte spots which aren't present on the blood vessels are also beinng changed.The image of white spots is:
and the image of blood vessels is:
and the final output after removal of white spots which are present on blood vessels is:
The code i have tried is:
VesselCandidates = BloodVessels & CorrelationOutput;%here VesselCandidates are the whitespots which lie on the BloodVessels
[r,c] = find(VesselCandidates==1);%I'm finding location of those VesselCandidates
CorrelationOutput(r,c) = 0;%and making their pixel intensity as zero
Can anyone suggest me what I am doing wrong and help me get the correct output.
Is there any other way to perform the task accurately?
Please suggest ,
Thank you.

Réponses (0)

Catégories

En savoir plus sur Image Segmentation and Analysis 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