Vector to image🔗
Converts a one-dimensional array of numbers to a gray-level image.
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.
image: The output image.