MATLAB: How to fill the regions within the traced boundry using “bwboundaries”

bwboundariesImage Processing Toolbox

Hi, I am using bwboundaries to trace the boundaries. I want to know,how to fill the traced region alone with white pixels.

Best Answer

b=imfill(b,'holes');