locpix.visualise.vis_img.manual_threshold#

manual_threshold(array, threshold, how='linear') ndarray[source]#

Perform manual threshold of the input array

Parameters:
  • array (np.ndarray) – numpy array

  • threshold (float or int) – Threshold above which array will be thresholded

  • how (string) – How to interpolate the array

Returns:

The thresholded output on the input array

Return type:

thresh_array (np.ndarray)