Convert back to an image with `ndims` rank.

img_from_4D(image, ndims)

Arguments

image

4D tensor.

ndims

The original rank of the image.

Value

`ndims`-D tensor with the same type.