mask_dlabel

Usage

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

Import in python using from mcutils.scripts import mask_dlabel

Documentation

Masks out part of a dlabel file based on a dscalar file

if discard is set simply removes all the voxels/vertices that are <= 0. Otherwise replace those voxels/vertices outside of the mask with a new label (called “outside_mask).

Functions

run(label_fn, scalar_fn, out_fn[, discard, …])

Masks out part of a dlabel file using a dscalar file

CLI interface

add_to_parser(parser)

Creates the parser of the command line arguments

run_from_args(args)