Skip to content
HALOWERK

Bildwerk

raster bitdepth roundtrip loss

Return sample-wise quantization error when reducing unsigned raster channel bit depth. Supplied integer buffers only; no image download or model call.

POST https://bild.halowerk.com/v1/raster-bitdepth-roundtrip-loss

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
samplesarrayYes
source_bitsintegerYes
target_bitsintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "samples": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 65535
      },
      "maxItems": 1000,
      "minItems": 1
    },
    "source_bits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16
    },
    "target_bits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16
    }
  },
  "required": [
    "samples",
    "source_bits",
    "target_bits"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "samples": [
    0,
    128,
    255
  ],
  "source_bits": 8,
  "target_bits": 4
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →