linumpy.gpu.interface#

GPU implementation of tissue interface detection.

Mirrors the CPU path in linumpy.geometry.interface.find_tissue_interface() but routes the heavy filters through cupyx.scipy.ndimage to avoid host-device round trips when the caller already holds GPU data or when the volume is large enough that the transfer cost is amortised.

Functions#

find_tissue_interface_gpu(vol[, s_xy, s_z, use_log, ...])

GPU equivalent of find_tissue_interface (no mask path).

Module Contents#

linumpy.gpu.interface.find_tissue_interface_gpu(vol, s_xy=15, s_z=2, use_log=True, order=1, detect_cutting_errors=False)[source]#

GPU equivalent of find_tissue_interface (no mask path).

Always returns a NumPy array of integer depths so callers do not need to be aware of the device.

Parameters:
  • vol (Any)

  • s_xy (int)

  • s_z (int)

  • use_log (bool)

  • order (int)

  • detect_cutting_errors (bool)

Return type:

numpy.ndarray