% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rgb_ratio.R
\name{rgb_ratio}
\alias{rgb_ratio}
\title{RGB ratio indices}
\usage{
rgb_ratio(image)
}
\arguments{
\item{image}{A RasterBrick or RasterStack object with three bands (R, G, B).}
}
\value{
A RasterStack object where each layer represents a ratio between RGB bands:
GRRI (G/R), GBRI (G/B), RBRI (R/B), RGRI (R/G), BGRI (B/G), and BRRI (B/R).
}
\description{
Computes ratio-based 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_ratio(img)

}
