Skip to content

Microscope OpenCV and NumPy nodes ​

Pack ID: microscope_opencv · version 1.0.0.

Declared runtime dependencies:

  • numpy>=2,<3
  • opencv-python-headless>=4.12,<5

Grayscale ​

Stable type ID: microscope_opencv.grayscale
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
imageimageYes

Outputs

PortType
graygray

Parameters

NameTypeDefaultConstraints / notes
—None——

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Color-space channels ​

Stable type ID: microscope_opencv.color_channels
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
imageimageYes

Outputs

PortType
firstgray
secondgray
thirdgray

Parameters

NameTypeDefaultConstraints / notes
spaceenumHSVlabel: Color space; values: ["HSV", "Lab"]

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Gaussian blur ​

Stable type ID: microscope_opencv.gaussian
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
graygrayYes

Outputs

PortType
graygray

Parameters

NameTypeDefaultConstraints / notes
sigmanumber1label: Sigma (pixels); min: 0.1; max: 20

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

Threshold ​

Stable type ID: microscope_opencv.threshold
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
graygrayYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
thresholdnumber128label: Threshold; min: 0; max: 255
invertbooleanTruelabel: Select darker pixels
otsubooleanFalselabel: Use Otsu threshold

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Adaptive threshold ​

Stable type ID: microscope_opencv.adaptive_threshold
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
graygrayYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
windowinteger31label: Odd window size; min: 3; max: 255; step: 2
offsetnumber5label: Offset; min: -100; max: 100

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

Morphology ​

Stable type ID: microscope_opencv.morphology
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
operationenumopeninglabel: Operation; values: ["opening", "closing", "erosion", "dilation"]
radiusinteger2label: Radius (pixels); min: 0; max: 64
iterationsinteger1label: Iterations; min: 1; max: 10

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

Connected components ​

Stable type ID: microscope_opencv.connected_components
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
labelslabels
measurementstable

Parameters

NameTypeDefaultConstraints / notes
connectivityenum8label: Connectivity; values: ["4", "8"]
max_measurementsinteger1000label: Maximum measurement rows; min: 0; max: 5000

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

Filter components ​

Stable type ID: microscope_opencv.filter_components
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
min_areainteger50label: Minimum area (pixels); min: 0; max: 4194304
max_areainteger4194304label: Maximum area (pixels); min: 1; max: 4194304

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

Invert mask ​

Stable type ID: microscope_opencv.invert_mask
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
—None——

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Combine masks ​

Stable type ID: microscope_opencv.mask_arithmetic
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
amaskYes
bmaskYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
operationenumintersectionlabel: Operation; values: ["intersection", "union", "difference", "xor"]

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Blend images ​

Stable type ID: microscope_opencv.image_blend
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
aimageYes
bimageYes

Outputs

PortType
imageimage

Parameters

NameTypeDefaultConstraints / notes
weightnumber0.5label: First image weight; min: 0; max: 1

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Tissue statistics ​

Stable type ID: microscope_opencv.tissue_statistics
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

No description is recorded in this node schema.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
measurementstable
fractionnumber

Parameters

NameTypeDefaultConstraints / notes
—None——

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

Mask to ROI polygons ​

Stable type ID: microscope_opencv.mask_to_roi
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

Extract bounded contours, preserving disconnected components and holes in WSI level-0 coordinates.

Inputs

PortTypeRequired
maskmaskYes

Outputs

PortType
roisroi

Parameters

NameTypeDefaultConstraints / notes
simplifynumber0.75label: Simplify (source px); min: 0; max: 8

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

ROI polygons to mask ​

Stable type ID: microscope_opencv.roi_to_mask
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

Rasterize WSI-coordinate polygons on the current spatial grid, including polygon holes.

Inputs

PortTypeRequired
imageimageYes
roisroiYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
—None——

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "mask"}

Mask threshold ​

Stable type ID: microscope_opencv.probability_threshold
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

Convert a probability raster to a binary mask on the identical spatial grid.

Inputs

PortTypeRequired
probabilityprobabilityYes

Outputs

PortType
maskmask

Parameters

NameTypeDefaultConstraints / notes
thresholdnumber0.5label: Threshold; min: 0; max: 1

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "mask"}

Apply ROI ​

Stable type ID: microscope_opencv.apply_roi
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

Fill image pixels outside WSI-coordinate ROI polygons with white on the current grid.

Inputs

PortTypeRequired
imageimageYes
roisroiYes

Outputs

PortType
imageimage

Parameters

NameTypeDefaultConstraints / notes
—None——

Execution requirements: {"mode": "tile_local", "version": 1, "tile_size": 1024, "target_mpp": null, "context_padding": 0, "overlap": 0, "merge": "core"}

Combine ROIs ​

Stable type ID: microscope_opencv.roi_boolean
Version: 1
Required pack: Microscope OpenCV and NumPy nodes (microscope_opencv 1.0.0)

Combine polygons on the connected image grid; output coordinates remain WSI level-0 pixels.

Inputs

PortTypeRequired
imageimageYes
aroiYes
broiYes

Outputs

PortType
roisroi

Parameters

NameTypeDefaultConstraints / notes
operationenumintersectionlabel: Operation; values: ["intersection", "union", "difference"]

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