easistrain.func_generate_mask.mask¶
- easistrain.func_generate_mask.mask(root, image, int_min, int_max, root_save, mask_name, extension)[source]¶
Generate automatically a mask for an image. It masks the pixels lower than int_min and bigger than int_max
- Parameters:
root – the path of the folder of the image for which the mask will be generated
image – The name of the image for which the mask will be generated
int_min – minimum intensity below which the pixels have to be masked
int_max – maximum intensity above which the pixels have to be masked
root_save – The path of the folder pn which the mask have to be saved
mask_name – The name of the mask
extension – The format of the mask image (edf, tif, …)