urbanlc.analyze.visualizer.visualize_data_batch#

urbanlc.analyze.visualizer.visualize_data_batch(images: Tensor, gts: Tensor, dataset: str, ax: Axes) None#

Visualize a batch of data containing Landsat images and corresponding ground truth land cover maps.

This function takes a batch of Landsat images, a batch of ground truth land cover maps, the name of the Landsat dataset for RGB mapping, and a matplotlib axis. It visualizes the Landsat images and ground truth land cover maps side by side on the provided axis.

Parameters:
  • images (torch.Tensor) – Batch of Landsat images.

  • gts (torch.Tensor) – Batch of ground truth land cover maps.

  • dataset (str) – Name of the Landsat dataset (e.g., ‘landsat8’) for RGB mapping.

  • ax (matplotlib.axes.Axes) – Matplotlib axis to display the visualizations.

Returns:

None

Return type:

None