Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 979 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 979 Bytes

All scripts require v0.62 or newer of the syGlass Python module.

channel_to_mask.py

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).

Usage

python channel_to_mask.py [path/to/project.syg] [channelNumber]

channel_as_mask.py

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.

Usage

python channel_as_mask.py [path/to/project.syg] [imageChannelNumber] [maskChannelNumber]

tiff_channel_as_mask.py

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.

Usage

python channel_as_mask.py [path/to/project.syg] [path/to/tiff/directory] [imageChannelNumber] [maskChannelNumber]