Skip to content
HALOWERK

Image Processing

mask pair intersection over union

Image mask overlap returns intersection pixels, union pixels and Jaccard score. Use it when an agent needs an overlap measure for two aligned foreground masks.

POST https://bild.halowerk.com/v1/mask-pair-intersection-over-union

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
referencearrayYes
candidatearrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "reference": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
      },
      "maxItems": 128,
      "minItems": 1
    },
    "candidate": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
      },
      "maxItems": 128,
      "minItems": 1
    }
  },
  "required": [
    "reference",
    "candidate"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "reference": [
    "000110000",
    "000110000",
    "000101000",
    "001001000",
    "001001000",
    "011000100",
    "011111100",
    "010000110",
    "110000010"
  ],
  "candidate": [
    "000110000",
    "000110000",
    "000101000",
    "001001000",
    "001001000",
    "011000100",
    "011111100",
    "010000100",
    "100000010"
  ]
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "intersection": {
          "type": "integer"
        },
        "union": {
          "type": "integer"
        },
        "iou": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "intersection",
        "union",
        "iou"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →