stereo.image.tissue_cut.SingleStrandDNATissueCut.__init__#

SingleStrandDNATissueCut.__init__(src_img_path=None, staining_type=None, model_path=None, dst_img_path=None, gpu=-1, num_threads=-1)[source]#

Tissue Segmentation based on regist.tif

Parameters:
  • src_img_path (Union[str, List[str], None]) – the path of regist.tif, defaults to None

  • staining_type (Optional[str]) – the staining type of regist.tif, available values include ‘ssDNA’, ‘dapi’, ‘HE’ and ‘mIF’, defaults to None

  • model_path (Optional[str]) – the path of model, it has to be matched with staining type, defaults to None

  • dst_img_path (Optional[str]) – the path of directory to save result mask.tif, defaults to save into the directory of regist.tif.

  • gpu (Union[int, str]) – the gpu on which the model will work, -1 means working on cpu.

  • num_threads (int) – the number of threads when model work on cpu, -1 means using all the cores.