mosaic.utils.get_invalid_patches

mosaic.utils.get_invalid_patches#

mosaic.utils.get_invalid_patches(patches)#

Helper function to identify problematic patches.

Returns the indices of the problematic patches as determined by shapely.is_valid().

Parameters:

patches (ndarray) – The patch array to check

Returns:

Indices of invalid patches. If no patches are invalid then returns None

Return type:

ndarray or None