How to delete an object without a dot on it?
Mostra commenti meno recenti
Hi, I am trying to extract the mobile phone, with a dot on it, out of the image. I have detected the edge of the phone. But beside the phone there is a cap without a dot, which I don't want. How should I delete the image of the cap and extract only the phone? I have already got the coordinate of the dot center.




Risposta accettata
Più risposte (1)
Image Analyst
il 2 Lug 2015
You need to find the red spot(s) first and get a binary image of those. See my File Exchange if you need to know how to do that. Then use that binary image with imreconstruct() and your filled binary image.
binaryWitDots = imreconstruct(filledBinaryImage, redDotBinary);
Categorie
Scopri di più su Lighting, Transparency, and Shading in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!