Skip to content
HALOWERK

Language Model Access

layout im2col index map

Return row-major two-dimensional im2col patch values and original flattened indexes for a supplied image plane.

POST https://modell.halowerk.com/v1/layout-im2col-index-map

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
imagearrayYes
kernel_heightintegerYes
kernel_widthintegerYes
strideintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "image": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -1000,
          "maximum": 1000
        },
        "maxItems": 16,
        "minItems": 1
      },
      "maxItems": 16,
      "minItems": 1
    },
    "kernel_height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "kernel_width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "stride": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    }
  },
  "required": [
    "image",
    "kernel_height",
    "kernel_width",
    "stride"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "image": [
    [
      1,
      2,
      3
    ],
    [
      4,
      5,
      6
    ]
  ],
  "kernel_height": 2,
  "kernel_width": 2,
  "stride": 1
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’