\HeaderA{equalize}{Histogram equalization}{equalize}
\begin{Description}\relax
Equalize the histogram of an image.
\end{Description}
\begin{Usage}
\begin{verbatim}
  equalize(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
The algorithm used by this ImageMagick function is not well defined.
\end{Details}
\begin{Value}
An \code{Image} object or an array, containing the transformed version
of \code{x}.
\end{Value}
\begin{Author}\relax
Oleg Sklyar, \email{osklyar@ebi.ac.uk}, 2006-2007
\end{Author}
\begin{References}\relax
\emph{ImageMagick}: \url{http://www.imagemagick.org}.
\end{References}
\begin{Examples}
\begin{ExampleCode}
  x = readImage(system.file("images", "lena.gif", package="EBImage"))
  if (interactive()) display(x)
  
  y = equalize(x)
  if (interactive()) display(y, title='equalize(x)')
\end{ExampleCode}
\end{Examples}

