Segmenting objects from a threshold image
Afficher commentaires plus anciens
I have thresholded an image using thresholder app in Matlab and converted the output for an image to black and white. AS a result I got the following output,

Now what I need to do is to isolate the specific type of square in the thresholded image from above image: I want my output to be as follows

I have tried bwareafilt(mask, [minArea maxArea]); command but that dosen't give optimal solution, more on that is here https://www.mathworks.com/matlabcentral/answers/676728-how-to-implement-helping-functions-for-counting-lego-blocks-in-image
Please follow comment section in above link to understand the problem of using bwareafilt command.
Is there anyone who knows solution for how to tackle this problem.
Thank You in anticipation.
3 commentaires
Image Analyst
le 5 Déc 2020
What is it about that particular blob that distinguishes it from any other blob? Like do you always want the smallest blob? Or a blob in a particular (row, column) location? Or a blob with a particular mean intensity of the corresponding gray level image? How did you know that you want that particular blob instead of any of the others???
If you need more help, can you post the gray level image and the segmentation code?
Adnan Khan
le 5 Déc 2020
Adnan Khan
le 5 Déc 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Segmentation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
