run

Import in python using from mcutils.scripts.surface.from_mask import run

mcutils.scripts.surface.from_mask.run(img)[source]

Generates the mesh based on the tumour mask

uses the marching cube algorithm from scikit-image

Parameters

img – mask that is non-zero in the lesion

Returns

new surface