urbanlc.model.baseline.MSSBaseline.retrieve_images#
- MSSBaseline.retrieve_images(img_paths: List[str], gt_paths: List[Any] = [], return_size: Optional[bool] = False) Union[Tuple[ndarray, ndarray, List[Tuple[int]]], Tuple[ndarray, ndarray]] #
Retrieve and preprocess Landsat images and ground truth land cover data from specified paths for training/inference.
- Parameters:
img_paths (List[str]) – List of paths to Landsat image files.
gt_paths (List[Any]) – List of paths to ground truth land cover files.
return_size (Optional[bool]) – Whether to return the original sizes of Landsat images.
- Returns:
Tuple containing retrieved images and ground truth land cover data.
- Return type:
Union[Tuple[np.ndarray, np.ndarray, List[Tuple[int]]], Tuple[np.ndarray, np.ndarray]]