Learn R Programming

EBImage (version 4.14.2)

fillHull: Fill holes in objects

Description

Fill holes in objects.

Usage

fillHull(x)

Arguments

x
An Image object or an array.

Value

An Image object or an array, containing the transformed version of x.

Details

fillHull fills holes in the objects defined in x, where objects are sets of pixels with the same unique integer value.

See Also

bwlabel

Examples

Run this code
  x = readImage(system.file('images', 'nuclei.tif', package='EBImage'))
  display(x)

  y = thresh(x, 10, 10, 0.05)
  display(y, title='Cell nuclei')

  y = fillHull(y)
  display(y, title='Cell nuclei without holes')

Run the code above in your browser using DataLab