Skip to content
HALOWERK

Image Processing

mask pair best integer shift

Mask translation search finds a bounded integer shift of the candidate that maximizes foreground IoU. Use it when an agent needs a registration correction before mask comparison.

POST https://bild.halowerk.com/v1/mask-pair-best-integer-shift

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
referencearrayYes
candidatearrayYes
radiusintegerYes
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
    },
    "radius": {
      "type": "integer",
      "minimum": 0,
      "maximum": 6
    }
  },
  "required": [
    "reference",
    "candidate",
    "radius"
  ],
  "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"
  ],
  "radius": 1
}

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": {
        "dx": {
          "type": "integer"
        },
        "dy": {
          "type": "integer"
        },
        "iou": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "dx",
        "dy",
        "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 →