How can I extract each cell (= patch that is not crossed by the contour) from an image such as
I thought SelectComponents
(e.g. SelectComponents[img, #Width > 1 &]
) could do it but I did not manage. I need to keep track of the position of the cell also, so the output could be a few hundreds images of the same size as the original image, with white everywhere except for the cells.