\HeaderA{normalize}{Functions to normalize images}{normalize}
\aliasA{negate}{normalize}{negate}
\aliasA{negate,Image-method}{normalize}{negate,Image.Rdash.method}
\aliasA{normalize,Image-method}{normalize}{normalize,Image.Rdash.method}
\aliasA{normalize2}{normalize}{normalize2}
\aliasA{normalize2,Image-method}{normalize}{normalize2,Image.Rdash.method}
\keyword{manip}{normalize}
\begin{Description}\relax
Functions to normalize images.
\end{Description}
\begin{Usage}
\begin{verbatim}

  ## S4 method for signature 'Image':
  normalize(x, separate=TRUE, ft=c(0,1), ...)

  ## S4 methods for signature 'x=Image'
  negate(x, ...)
  normalize2(x, ...)
  
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of \code{\LinkA{Image-class}{Image.Rdash.class}}. 
\item[\code{separate}] If \code{TRUE} normalizes each frame separately. 
\item[\code{ft}] A numeric vector of 2 values, target minimum and maximum 
intensity values after normalization for \code{\LinkA{Grayscale}{Grayscale}} images. 
\item[\code{...}] Reserved. 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{negate} negates the colors in the reference image. Operates on all image
modes.

\code{normalize} normalizes \code{\LinkA{Grayscale}{Grayscale}} images to the given range.

\code{normalize2} uses \code{ImageMagick} normalization routine to normalize
\code{\LinkA{Grayscale}{Grayscale}} or \code{\LinkA{TrueColor}{TrueColor}} images.
\end{Details}
\begin{Value}
A transformed image in an object of \code{\LinkA{Image}{Image.Rdash.class}}.
\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{SeeAlso}\relax
\code{
  \LinkA{Image}{Image.Rdash.class}, \LinkA{Image}{Image.Rdash.class}
}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  ## see example(getFeatures)
\end{ExampleCode}
\end{Examples}

