Vector to image🔗

Converts a one-dimensional array of numbers to a gray-level image.

Inputs🔗

  • pixelSize: The size of the output image in pixels. A 1-by-2 matrix (width, height).

  • pixels: A vector of pixel values in row-major order. A 1-by-N or N-by-1 matrix where N = width * height. The type (bit depth) of the output image is determined by the minimum and maximum values in this vector.

  • scaler: The elements of pixels are multiplied by scaler before image is constructed.

Outputs🔗

  • image: The output image.