\name{rip.desaturate}
\alias{rip.desaturate}
\title{Convert color image to grayscale}
\usage{
rip.desaturate(x, method = c("simple", "decolor", "convert"))
}
\arguments{
  \item{x}{
    A \code{"rip"} object (or an object that can be coerced to one),
    giving the color image to be converted.
  }

  \item{method}{Character string giving the method used.}
}
\description{
  Converts a color image to a grayscale image using one of three
  algorithms.
}
\details{
  Three methods are supported. The \code{"decolor"} method uses the
  OpenCV function \code{decolor}, \code{"convert"} uses the OpenCV
  function \code{cvtColor}, and \code{"simple"} uses a simple linear
  combination in R.
}
\author{
  Deepayan Sarkar
}
