MATLAB: How can i complete the missing data in a cell to complete the cell. i tried imfill command but not works for me. thanks for your time.

here is the image in which i want to complete the cells.Image Processing Toolbox

1(41).png

Best Answer

Your segmentation algorithm is no good. Use a better one. Maybe just need to change the threshold - can't tell because you did not attach the original image.
To merge nearby blobs into a single blob, use imclose().
To get the convex hull, use bwconvhull().