fillHull: Fill holes in objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/floodFill.R

Description

Fill holes in objects.

Usage

1

Arguments

x

An Image object or an array.

Details

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

Value

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

Author(s)

Gregoire Pau, Oleg Sklyar; 2007

See Also

bwlabel

Examples

1
2
3
4
5
6
7
8
  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')

Example output

Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.
Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.
Only the first frame of the image stack is displayed.
To display all frames use 'all = TRUE'.

EBImage documentation built on Nov. 8, 2020, 5:41 p.m.