All scripts require v0.62 or newer of the syGlass Python module.
A script that leverages the syGlass Python module to convert a channel in a given project into a mask stored in the mask octree (.syk
file).
python channel_to_mask.py [path/to/project.syg] [channelNumber]
A script that leverages the syGlass Python module to export one channel masked by another channel (where that channel is within the saved thresholds) in a given project.
python channel_as_mask.py [path/to/project.syg] [imageChannelNumber] [maskChannelNumber]
The same as channel_as_mask.py
, but instead operating on TIFF slices that have already been exported from a syGlass project. The directory to these TIFFs is provided as an additional argument.
python channel_as_mask.py [path/to/project.syg] [path/to/tiff/directory] [imageChannelNumber] [maskChannelNumber]