
How to mask the inner region of this Binary Image? Can anyone give some idea?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SASIREKHA DURAISAMY
am 1 Aug. 2019
Kommentiert: KALYAN ACHARJYA
am 4 Aug. 2019
This is Abdomen image(img1.jpg) . The Inner region should be completely black. if we use imfill the entire region becomes black as there is a gap in it.
Edge fill cannot be used as the shape of inner region varies.
I need to get image like this(img2.jpg)
The original image(newImg.jpg)
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 1 Aug. 2019
Bearbeitet: KALYAN ACHARJYA
am 1 Aug. 2019
I would suggest you the slightly improved on thresholding (segmentation results), which leads great help to disconnect the black pixel link (as result shown)
se=strel('disk',5);
result=imerode(test_image,se);
largest_blob=bwareafilt(result,1,'largest');
result=imdilate(largest_blob,se);
figure,imshow(result);

Hope it Helps!
2 Kommentare
KALYAN ACHARJYA
am 4 Aug. 2019
"On doing the above there will be changes in the fat values.(eg: Inner organ touches the outer skin layer in the second dilated image and also gap regions created its own shape which differs from the original Image)".
Thats why, I asked to adjust accordingly, so that the link should be broken and rest are as same after morpho operations
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!