runmat-runtime 0.4.8

Core runtime for RunMat with builtins, BLAS/LAPACK integration, and execution APIs
Documentation
{
  "title": "im2uint16",
  "category": "image/color",
  "keywords": [
    "im2uint16",
    "image",
    "uint16",
    "double",
    "uint8",
    "convert"
  ],
  "summary": "Convert image data to uint16 using image scaling rules.",
  "references": [
    "https://www.mathworks.com/help/matlab/ref/im2uint16.html"
  ],
  "gpu_support": {
    "elementwise": false,
    "reduction": false,
    "precisions": [],
    "broadcasting": "none",
    "notes": "GPU inputs gather to host because uint16 image output dtype is host metadata today."
  },
  "fusion": {
    "elementwise": false,
    "reduction": false,
    "max_inputs": 1,
    "constants": "inline"
  },
  "requires_feature": null,
  "tested": {
    "unit": "builtins::image::color::im2uint16::tests"
  },
  "description": "`im2uint16(I)` converts floating image values in [0,1] to uint16 [0,65535] and expands uint8 image data by 257.",
  "behaviors": [
    "Floating-point inputs are clamped to [0,1], multiplied by 65535, and rounded.",
    "uint8 inputs are expanded into the uint16 image range."
  ],
  "examples": [
    {
      "description": "Convert To uint16",
      "input": "J = im2uint16(I);",
      "output": "% J is uint16 image data"
    }
  ],
  "links": [
    {
      "label": "im2double",
      "url": "./im2double"
    },
    {
      "label": "im2uint8",
      "url": "./im2uint8"
    }
  ],
  "source": {
    "label": "crates/runmat-runtime/src/builtins/image/color/im2uint16.rs",
    "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/image/color/im2uint16.rs"
  }
}