cars.core.datasets

CARS Datasets module

Module Contents

Functions

create_im_dataset(→ xarray.Dataset)

Create image dataset as used in cars.

cars.core.datasets.create_im_dataset(img: numpy.ndarray, region: List[int], largest_size: List[int], img_path: str = None, band_coords: bool = False, msk: numpy.ndarray = None) xarray.Dataset

Create image dataset as used in cars.

Parameters
  • img – image as a numpy array

  • region – region as list [xmin ymin xmax ymax]

  • largest_size – whole image size

  • img_path – path to image

  • band_coords – set to true to add the coords ‘band’ to the dataset

  • msk – image mask as a numpy array (default None)

Returns

The image dataset as used in cars