time_of_flight#
- time_of_flight(image, boundary='l', detrend=True)[source]#
Compute time of flight map (solution to Eikonal equation) from specified boundary (inlet or outlet) Assumes img = 1 in pore space, 0 for grain space Assumes flow is in z direction (orthogonal to axis 2)
- Return type:
ndarray- Parameters:
image – An np.ndarray containing the binary image with the phase of interest labeled as 1
boundary – Left (‘l’) or right (‘r’) boundaries corresponding to the inlet or outlet
detrend – If
detrendis True, then subtract the solution assuming no solid matrix is present in the image.masked. (The solid matrix is still)
- Returns:
Time of flight map from specified boundary
- Return type:
numpy.ndarray