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!
