\HeaderA{fillHull}{Fill holes in objects}{fillHull}
\begin{Description}\relax
Fill holes in objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
  fillHull(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An \code{Image} object or an array.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{fillHull} fills holes in the objects defined in \code{x}, where
objects are sets of pixels with the same unique integer value.
\end{Details}
\begin{Value}
An \code{Image} object or an array, containing the transformed version
of \code{x}.
\end{Value}
\begin{Author}\relax
Gregoire Pau, Oleg Sklyar; 2007
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{bwlabel}{bwlabel}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  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')
\end{ExampleCode}
\end{Examples}

