Skip to content
HALOWERK

Image Processing

mask pair enclosed voids

Mask hole comparison counts enclosed background components and their area in each image. Use it when an agent needs topological changes inside segmented objects.

POST https://bild.halowerk.com/v1/mask-pair-enclosed-voids

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": {
        "reference_holes": {
          "type": "integer"
        },
        "candidate_holes": {
          "type": "integer"
        },
        "reference_void_pixels": {
          "type": "integer"
        },
        "candidate_void_pixels": {
          "type": "integer"
        }
      },
      "required": [
        "reference_holes",
        "candidate_holes",
        "reference_void_pixels",
        "candidate_void_pixels"
      ]
    },
    "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 →