Tensor to image🔗

Converts a tensor to an image. The tool automatically detects the layout of the input tensor and converts it to an RGB or gray-level image with eight bits per channel.

Inputs🔗

  • tensor: A tensor.

  • rescaleIntensity: A Boolean flag that enables or disables rescaling of tensor values to 0-255. If rescaling is disabled, values will be cut.

  • minIntensity: The minimum intensity value in the input tensor.

  • maxIntensity: The maximum intensity value in the input tensor.

Outputs🔗

  • image: An image. If rescaling is enabled, each color channel will be scaled and capped from [minIntensity, maxIntensity] to [0, 255]. If not, values will be just capped.