urbanlc.model.pipeline_transforms.compute_NDVI#
- urbanlc.model.pipeline_transforms.compute_NDVI(img: ndarray, index_nir: int, index_red: int) ndarray #
Compute the Normalized Difference Vegetation Index (NDVI).
- Parameters:
img (np.ndarray) – Landsat image.
index_nir (int) – Index of the Near-Infrared (NIR) band in the image.
index_red (int) – Index of the Red band in the image.
- Returns:
NDVI computed from the input image.
- Return type:
np.ndarray