surface from_maskΒΆ

Usage

Run using mc_script surface from_mask after installation or using ~ndcn0236/bin/mc_script surface from_mask on jalapeno.

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

Documentation

Creates a surface covering the mask

Uses the scikit-image marching cubes algorithm

The resulting surface will follow the edge of the mask exactly and hence look very jagged. You might want to run mc_script surface smooth afterwards to get a nicer looking surface.

Functions

run(img)

Generates the mesh based on the tumour mask

CLI interface

add_to_parser([parser])

Creates the parser of the command line arguments

run_from_args(args)

Runs the script based on a Namespace containing the command line arguments