\HeaderA{matchObjects}{Matching objects in two indexed images}{matchObjects}
\aliasA{matchObjects,IndexedImage,IndexedImage-method}{matchObjects}{matchObjects,IndexedImage,IndexedImage.Rdash.method}
\keyword{manip}{matchObjects}
\begin{Description}\relax
For objects detected in one image, this function finds indexes of matching
obnects in the other (i.e. indexes of objects at the locations of the centres
of objects in the original image.
\end{Description}
\begin{Usage}
\begin{verbatim}

  ## S4 method for signature 'IndexedImage, IndexedImage':
  matchObjects(x, ref, ...)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of \code{\LinkA{IndexedImage}{IndexedImage.Rdash.class}}. 
\item[\code{ref}] A reference image \code{\LinkA{IndexedImage}{IndexedImage.Rdash.class}} with 
objects to matched to. 
\item[\code{...}] Reserved. 
\end{ldescription}
\end{Arguments}
\begin{Value}
If number of frames in \code{x} and \code{ref} is 1, then the result is an
\code{\LinkA{integer}{integer}} vector of matching indexes, similar to \code{\LinkA{match}{match}}.

Otherwise, a list of such vectors, 1 per frame.
\end{Value}
\begin{Author}\relax
Oleg Sklyar, \email{osklyar@ebi.ac.uk}, 2007
\end{Author}
\begin{SeeAlso}\relax
\code{
    \LinkA{IndexedImage}{IndexedImage.Rdash.class}, \LinkA{IndexedImage}{IndexedImage.Rdash.class}, \LinkA{IndexedImage}{IndexedImage.Rdash.class}
}
\end{SeeAlso}

