A basic program to generate random patches (images and masks) for deep learning applications like semantic segmentation.
- get_tiled_patches()
- get_random_patches()
Provide the following information in the main program:
- input/img/
- input/mask/
- out_path = './patches/'
- patch_img = out_path + img_name +'/img/'
- patch_mask = out_path + img_name +'/mask/'
- patch_tile_size = 128 # size of patch image
- n_images=3 # Number of patch to generate ( get_random_patches() )