Skip to content
HALOWERK

File Formats and Conversion

pbm mask ink centroid

PBM optical center calculates the centroid of black pixel centers in raster coordinates. Use it when an agent needs aligning a one-bit symbol.

POST https://format.halowerk.com/v1/pbm-mask-ink-centroid

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pbmstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "pbm": {
      "type": "string",
      "maxLength": 60000,
      "minLength": 1
    }
  },
  "required": [
    "pbm"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "pbm": "UDQKNyAxMQpgYAAAAAAAAAAAAA=="
}

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": {
        "x": {
          "type": [
            "number",
            "null"
          ]
        },
        "y": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "x",
        "y"
      ]
    },
    "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 โ†’