\HeaderA{image,Image-method}{Generic methods for objects of class Image}{image,Image.Rdash.method}
\aliasA{Arith}{image,Image-method}{Arith}
\aliasA{as.Image}{image,Image-method}{as.Image}
\aliasA{as.Image,array-method}{image,Image-method}{as.Image,array.Rdash.method}
\aliasA{hist,Image-method}{image,Image-method}{hist,Image.Rdash.method}
\aliasA{median.Image}{image,Image-method}{median.Image}
\aliasA{print.Image}{image,Image-method}{print.Image}
\aliasA{print.IndexedImage}{image,Image-method}{print.IndexedImage}
\aliasA{show,Image-method}{image,Image-method}{show,Image.Rdash.method}
\aliasA{[,Image-method}{image,Image-method}{[,Image.Rdash.method}
\keyword{methods}{image,Image-method}
\keyword{classes}{image,Image-method}
\begin{Description}\relax
\code{\LinkA{Image}{Image.Rdash.class}} supports all (or almost all) operations that are 
defined for \code{\LinkA{array}{array}}. However, the default behavior of some 
generics was redefined in the package to better suit the class. Those are:
\end{Description}
\begin{Section}{Generic methods}
\describe{

\item[\code{show(object)} ] Prints a summary of
image and properties (as described in 'Accessor methods' section). Prints
also an excerpt of data keeping it to the minimum just to have a visual 
control over the atomic data type. Use\code{imageData(x)} to print or
assign the full dataset. If image was put through the object detection
algorithm a summary of detected objects will be printed instead of data. 

\item[\code{as.array(x)}] Removed to avoid incompatibilities with R < 2.5. 
Use \code{\LinkA{imageData}{imageData}} instead. 

\item[\code{as.matrix(x, ...)}] Removed to avoid incompatibilities with 
R < 2.5. Use \code{as.matrix(\LinkA{imageData}{imageData}(x))} instead. 

\item[\code{hist(x, ...)}] A histogramme method.  

\item[\code{median(x, na.rm=FALSE)}] \code{stats:\LinkA{median}{median}} redefinition 
for images (bug workaround: without it \code{median} takes forever to
execute without no apparent reason)

\item[\code{image(x, ...)}] Draws image data using \code{graphics::image} 
keeping image aspect ratio. 

\item[\code{[}] Redefined versions (multiple signatures) of the
\code{\LinkA{array}{array}} subsetting operator. These return objects of class 
\code{Image} without dropping dimensions. 

\item[\code{Arith}] Redefined arithmetic operators acting on any 
combination of \code{Image} with another \code{Image} or \code{array}
will return an object of class \code{Image}. 

\item[\code{as.Image)(x, ...)}] S4 method for the signature \code{x=array}.
Is equivalent to \code{Image(x)} when \code{x} is \code{array}.
}

Other important methods that directly applicable due to inheritance from the 
\code{\LinkA{array}{array}} class, just to stress that they can and should be used:

\describe{

\item[\code{\LinkA{dim}{dim}(x)} and \code{dim(x) <- value} ] Gets and sets image
dimensions. 
\item[\code{\LinkA{fft}{fft}(z, inverse = FALSE)}] Performs the Fast Fourier
Transformation on an Image. 
\item[\code{\LinkA{sqrt}{sqrt}(x)} etc.] Miscellaneous mathematical functions. 
}
\end{Section}
\begin{Author}\relax
Oleg Sklyar, \email{osklyar@ebi.ac.uk}, 2006-2007
\end{Author}
\begin{SeeAlso}\relax
\code{
    \LinkA{Image}{Image.Rdash.class}, \LinkA{Image}{Image.Rdash.class}
  }
\end{SeeAlso}

