prevampire.apply_and_save_all_thresholds#
- prevampire.prevampire.apply_and_save_all_thresholds(img_arr, img_name_list, output_dir, num_imgs=5)[source]#
Apply various thresholding methods and save the results as .tif files.
- Parameters:
- img_arrlist
A list of NumPy arrays representing the intensified images.
- img_name_listlist
A list of image names corresponding to the arrays.
- output_dirstr
The directory where the thresholded images will be saved.
- num_imgsint, optional
The number of images to select for thresholding and saving. Defaults to 5.
- Raises:
- UnequalLengthError
If the lengths of the input arrays are not equal.