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

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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by