\HeaderA{ocontour}{Oriented contours}{ocontour}
\begin{Description}\relax
Computes the oriented contour of objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
  ocontour(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An \code{Image} object or an array, containing objects.
Only integer values are considered. Pixels of value 0 constitute
the background. Each object is a set of pixels with the same unique
integer value. Objets are assumed connected.

\end{ldescription}
\end{Arguments}
\begin{Value}
A list of matrices, containing the coordinates of object oriented contours.
\end{Value}
\begin{Author}\relax
Gregoire Pau, \email{gpau@ebi.ac.uk}, 2008
\end{Author}
\begin{Examples}
\begin{ExampleCode}
  x = readImage(system.file("images", "shapes.png", package="EBImage"))
  x = x[1:120,50:120]
  if(interactive()) display(x)
  oc = ocontour(x)
  plot(oc[[1]], type='l')
  points(oc[[1]], col=2)
\end{ExampleCode}
\end{Examples}

