MATLAB: BW consantred cell boundries

boundrybwcellMATLAB

Hello all,
I am trying to find the borders of the cell constration in black and white image. I draw more or less what i am trying to achieve. The border can be smoothed, It doesnt have to be exatch. But anyhow outliers should be excluded. Can you suggest any ideas ? I have put the raw image example as attached.
Thanks in advanced

Best Answer

You'll find examples of how to do this kind of thing with alphashape() here,