Skip to content

Microscope Python SDK built-in nodes ​

These descriptors are embedded in the viewer's offline catalogue and correspond to built-in source/layer nodes.

WSI region ​

Stable type ID: microscope.source
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Browser-captured viewport, selected ROI, bounded region, overview, or the whole WSI. Slide pixels stay in this browser.

Inputs

PortTypeRequired
—None—

Outputs

PortType
imageimage

Parameters

NameTypeDefaultConstraints / notes
scopeenumviewportlabel: Scope; values: ["viewport", "roi", "rectangle", "overview", "whole_slide"]
xinteger0label: X (level-0 pixels); min: 0; max: 100000000
yinteger0label: Y (level-0 pixels); min: 0; max: 100000000
widthinteger1024label: Width (level-0 pixels); min: 1; max: 100000000
heightinteger1024label: Height (level-0 pixels); min: 1; max: 100000000
mppnumber0.5label: Working MPP (µm/px); min: 0.01; max: 100
input_idstring``label: Runtime input; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "source", "version": 1}

Layer source · binary mask ​

Stable type ID: microscope.layer_source_mask
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Snapshot an existing mask layer from the current WSI for this job.

Inputs

PortTypeRequired
—None—

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
layer_idstring``label: ; local runtime only; excluded from portable workflow data
input_idstring``label: ; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "region", "version": 1}

Layer source · probability ​

Stable type ID: microscope.layer_source_probability
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Snapshot an existing probability layer from the current WSI for this job.

Inputs

PortTypeRequired
—None—

Outputs

PortType
probabilityprobability

Parameters

NameTypeDefaultConstraints / notes
layer_idstring``label: ; local runtime only; excluded from portable workflow data
input_idstring``label: ; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "region", "version": 1}

Layer source · instance labels ​

Stable type ID: microscope.layer_source_labels
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Snapshot an existing instance-label layer from the current WSI for this job.

Inputs

PortTypeRequired
—None—

Outputs

PortType
labelslabels

Parameters

NameTypeDefaultConstraints / notes
layer_idstring``label: ; local runtime only; excluded from portable workflow data
input_idstring``label: ; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "region", "version": 1}

Layer source · grayscale ​

Stable type ID: microscope.layer_source_gray
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Snapshot an existing grayscale layer from the current WSI for this job.

Inputs

PortTypeRequired
—None—

Outputs

PortType
graygray

Parameters

NameTypeDefaultConstraints / notes
layer_idstring``label: ; local runtime only; excluded from portable workflow data
input_idstring``label: ; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "region", "version": 1}

Layer source · ROI polygons ​

Stable type ID: microscope.layer_source_roi
Version: 1
Required pack: Microscope Python SDK built-ins (microscope-python source catalogue)

Snapshot WSI level-0 polygons; coordinates are not geographic longitude/latitude.

Inputs

PortTypeRequired
—None—

Outputs

PortType
roisroi

Parameters

NameTypeDefaultConstraints / notes
layer_idstring``label: ; local runtime only; excluded from portable workflow data
input_idstring``label: ; local runtime only; excluded from portable workflow data

Execution requirements: {"mode": "region", "version": 1}