Segmenting objects from a threshold image
显示 更早的评论
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 个评论
Image Analyst
2020-12-5
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
2020-12-5
Adnan Khan
2020-12-5
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Segmentation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
