urbanlc.model.pipeline_transforms#

Functions

compute_BUI(img, index_a, index_b)

Compute the Built-Up Index (BUI).

compute_NDBI(img, index_swir, index_nir)

Compute the Normalized Difference Built-Up Index (NDBI).

compute_NDVI(img, index_nir, index_red)

Compute the Normalized Difference Vegetation Index (NDVI).

compute_NDWI(img, index_green, index_nir)

Compute the Normalized Difference Water Index (NDWI).

mix_patch(image, gt[, alpha, beta])

Mix patches in the input image and ground truth following Beta distribution.

rand_bbox(size, lam)

Generate a random bounding box.

Classes

AppendBUI(index_a, index_b)

Compute the Built-Up Index (BUI) for PyTorch Tensor.

LandsatTransformer(means, stds[, ...])

Input Preprocessor for Landsat data

MSSTransformer([means, stds])

Input Preprocessor for Landsat data from MSS sensor (Landsat 1 - 5).

OLITIRSTransformer([means, stds])

Input Preprocessor for Landsat data from OLI/TIRS sensor (Landsat 8 - 9).

TMTransformer([means, stds])

Input Preprocessor for Landsat data from TM sensor (Landsat 4 - 7).