% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rgb_diff.R
\name{rgb_diff}
\alias{rgb_diff}
\title{RGB difference indices}
\usage{
rgb_diff(image)
}
\arguments{
\item{image}{A RasterBrick or RasterStack object with three bands (R, G, B).}
}
\value{
A RasterStack object where each layer represents a difference between RGB bands:
GRD (G - R), BGD (B - G), RGD (R - G), RBD (R - B), GBD (G - B), and BRD (B - R).
}
\description{
Computes difference-based RGB indices from a three-band RGB image.
}
\examples{
set.seed(123)
r <- raster::raster(matrix(runif(50*50), 50, 50))
g <- raster::raster(matrix(runif(50*50), 50, 50))
b <- raster::raster(matrix(runif(50*50), 50, 50))
img <- raster::stack(r, g, b)
rgb_diff(img)

}
