{
  "format": "microscope-workflow",
  "schema_version": 1,
  "name": "First tissue mask · bounded viewport",
  "required_packs": [
    {
      "id": "microscope_opencv",
      "url": "https://gitlab.com/microscope.io/microscope-nodes-opencv"
    }
  ],
  "nodes": [
    {
      "id": "wsi",
      "type": "microscope.source",
      "version": 1,
      "position": { "x": 20, "y": 100 },
      "parameters": { "scope": "viewport", "mpp": 2 }
    },
    {
      "id": "gray",
      "type": "microscope_opencv.grayscale",
      "version": 1,
      "position": { "x": 300, "y": 100 },
      "parameters": {}
    },
    {
      "id": "mask",
      "type": "microscope_opencv.threshold",
      "version": 1,
      "position": { "x": 580, "y": 100 },
      "parameters": { "threshold": 160, "invert": true, "otsu": false }
    }
  ],
  "edges": [
    {
      "id": "wsi-to-gray",
      "source": "wsi",
      "sourceHandle": "image",
      "target": "gray",
      "targetHandle": "image"
    },
    {
      "id": "gray-to-mask",
      "source": "gray",
      "sourceHandle": "gray",
      "target": "mask",
      "targetHandle": "gray"
    }
  ]
}
