| fillHull {EBImage} | R Documentation |
Fill holes in objects.
fillHull(x)
x |
An Image object or an array. |
fillHull fills holes in the objects defined in x, where
objects are sets of pixels with the same unique integer value.
An Image object or an array, containing the transformed version
of x.
Gregoire Pau, Oleg Sklyar; 2007
x = readImage(system.file('images', 'nuclei.tif', package='EBImage'))
if (interactive()) display(x)
y = thresh(x, 10, 10, 0.05)
if (interactive()) display(y, title='Cell nuclei')
y = fillHull(y)
if (interactive()) display(y, title='Cell nuclei without holes')