Does any one know how to remove objects that have holes using EBImage? For example, I converted the nuclei.tif file into a mask file using the follow code. Now how can I get rid of the nuclei with holes? Thanks.
x = readImage(system.file(file.path("images","nuclei.tif"), package="EBImage"), all = FALSE) y=thresh(x, w = 15, h = 15, offset = 0.1) objects = bwlabel(y) display(objects)