lentil.boundary#
- lentil.boundary(x, threshold=0)[source]#
Find bounding row and column indices of data within an array.
- Parameters:
x (array_like) – Input array
threshold (float, optional) – Masking threshold to apply before boundary finding. Only values in x that are larger than threshold are considered in the boundary finding operation. Default is 0.
- Returns:
rmin, rmax, cmin, cmax – Boundary indices
- Return type:
ints