\HeaderA{rmObjects}{Object removal}{rmObjects}
\aliasA{reenumerate}{rmObjects}{reenumerate}
\aliasA{reenumerate,IndexedImage-method}{rmObjects}{reenumerate,IndexedImage.Rdash.method}
\aliasA{rmObjects,IndexedImage,list-method}{rmObjects}{rmObjects,IndexedImage,list.Rdash.method}
\aliasA{rmObjects,IndexedImage,numeric-method}{rmObjects}{rmObjects,IndexedImage,numeric.Rdash.method}
\keyword{manip}{rmObjects}
\begin{Description}\relax
The \code{rmObjects} functions deletes objects indexed by a list of
integer vectors (indexes) from an image with indexed objects. \code{reenumerate}
re-enumerates all objects in an \LinkA{IndexedImage}{IndexedImage.Rdash.class} from 0 - background
to the actual number of objects.
\end{Description}
\begin{Usage}
\begin{verbatim}

  ## S4 methods for signatures 'x=IndexedImage,index=numeric'
  ## and 'x=IndexedImage,index=list'
  rmObjects(x, index, ...)

  ## S4 method for signature 'IndexedImage':
  reenumerate(x, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of \code{\LinkA{IndexedImage}{IndexedImage.Rdash.class}}. 
\item[\code{index}] A numeric (integer) vector of indexes of objects to
remove in the frame if \code{x} contains one frame only. For multiple
frames, a list of such vectors.
\item[\code{...}] Reserved. 
\end{ldescription}
\end{Arguments}
\begin{Value}
An image of \code{\LinkA{IndexedImage}{IndexedImage.Rdash.class}}.
\end{Value}
\begin{Author}\relax
Oleg Sklyar, \email{osklyar@ebi.ac.uk}, 2006-2007
\end{Author}
\begin{SeeAlso}\relax
\code{
  \LinkA{IndexedImage}{IndexedImage.Rdash.class}, \LinkA{IndexedImage}{IndexedImage.Rdash.class}, \LinkA{IndexedImage}{IndexedImage.Rdash.class}, \LinkA{IndexedImage}{IndexedImage.Rdash.class}
}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  ## see example(drawtext)
\end{ExampleCode}
\end{Examples}

