separating foreground from background and working on the masked image in matlab

2 vues (au cours des 30 derniers jours)
Malini Bakthavatchalam
Malini Bakthavatchalam le 24 Sep 2020
Modifié(e) : Sindar le 2 Oct 2020
Hi,
This question is haunting me for a long time. first I was working in color so I have asked people here. now i am working on grey levels, but still this question is not resolved. I am reading an image using imread function then converting the whole image to grey levels, then I have to work only on the grey levels of the foreground, the code should not include the background, could anyone suggest a code to insert in my code please....i will attach a sample image as well ...
  18 commentaires
Malini Bakthavatchalam
Malini Bakthavatchalam le 2 Oct 2020
Thank you for the reply. I understand the concept you explained for the background removal. its working in my code, but if I have images with background other than whites i cannot use this alogrithm right ?
like i am attaching a sample image
Sindar
Sindar le 2 Oct 2020
Modifié(e) : Sindar le 2 Oct 2020
This segmenter algorithm will likely fail, but you may be able to build a new algorithm in the Image Segmenter app (or Color Thresholder app). It really depends on the diversity of your images. For example, I'd expect 6.jpg to be almost trivial to segment, whereas 10.jpg and 25.jpg are probably doable but trickier, and creating a single algorithm that works on all three could be difficult.
(everything else in the code will function the same)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Get Started with Image Processing Toolbox 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