patch_denoise.gpu.dataloader.select_patches_to_process#
- patch_denoise.gpu.dataloader.select_patches_to_process(mask, patch_shape, patch_overlap, mask_threshold=50)[source]#
Select patches to process based on the mask and threshold.
- Parameters:
mask (numpy.ndarray) – The input mask, with the same spatial dimensions as the input data.
patch_overlap (tuple of int) – The number of overlapping elements between adjacent patches along each dimension
mask_threshold (float, default 50) – The percentage threshold for selecting patches. Patches with a percentage of masked pixels above this threshold will be selected for processing.
- Returns:
A list of indices corresponding to the selected patches to process.
- Return type: