urbanlc.model.pipeline_transforms.compute_NDBI#
- urbanlc.model.pipeline_transforms.compute_NDBI(img: ndarray, index_swir: int, index_nir: int) ndarray #
Compute the Normalized Difference Built-Up Index (NDBI).
- Parameters:
img (np.ndarray) – Landsat image.
index_swir (int) – Index of the Shortwave Infrared (SWIR) band in the image.
index_nir (int) – Index of the Near-Infrared (NIR) band in the image.
- Returns:
NDBI computed from the input image.
- Return type:
np.ndarray