usage: __main__.py [-h] (--fill_color str | --dict_colors file.json)
(--out_suffix [suffix] | --out_surface FILE)
[--source_space {vox,voxmm,rasmm,lpsmm}]
[--destination_space {vox,voxmm,rasmm,lpsmm}]
[--source_origin {corner,center}]
[--destination_origin {corner,center}]
[--legacy_vtk_format] [--reference REFERENCE]
[-v [{DEBUG,INFO,WARNING,ERROR}]] [-f]
in_surfaces [in_surfaces ...]
Assign a uniform color to one or many surfaces.
The color can be provided as an hexadecimal string or via a JSON dictionary
mapping surface basenames to colors.
Example:
scil_surface_assign_uniform_color surf.vtk --fill_color 0xFF0000 --out_surface colored.vtk
scil_surface_assign_uniform_color surf1.vtk surf2.vtk --dict_colors colors.json --out_suffix _colored
positional arguments:
in_surfaces Input surface(s) (VTK + PIAL + GII supported).
options:
-h, --help show this help message and exit
--legacy_vtk_format Save the VTK file in the legacy format.
--reference REFERENCE
Reference anatomy for tck/vtk/fib/dpy file
support (.nii or .nii.gz).
-v [{DEBUG,INFO,WARNING,ERROR}]
Produces verbose output depending on the provided level.
Default level is warning, default when using -v is info.
-f Force overwriting of the output files.
Coloring Methods:
--fill_color str Can be hexadecimal (ie. either "#RRGGBB" or 0xRRGGBB).
--dict_colors file.json
Json file: dictionary mapping each surface's basename to a color.
Do not put your file's extension in your dict.
Same convention as --fill_color.
Output options:
--out_suffix [suffix]
Specify suffix to append to input basename.
Mandatory choice if you run this script on multiple surfaces.
Mandatory choice with --dict_colors.
[None]
--out_surface FILE Output filename of colored Surface (VTK supported).
Surface spatial options:
--source_space {vox,voxmm,rasmm,lpsmm}
Source space of the input surface [rasmm].
--destination_space {vox,voxmm,rasmm,lpsmm}
Destination space of the output surface [rasmm].
--source_origin {corner,center}
Source origin of the input surface [center].
--destination_origin {corner,center}
Destination origin of the output surface [center].