threshold_local# crispy.image_ridge_find.threshold_local(image, *args, **kwargs)[source]# Apply a local thresholding method to an image for binarization. Parameters: image (ndarray) – Input image to be thresholded. *args (tuple) – Positional arguments passed to the thresholding function. **kwargs (dict) – Keyword arguments passed to the thresholding function. Returns: mask – Binary mask of the same shape as image, where True values represent pixels above the local threshold. Return type: ndarray