2D tensor images for a sampled signal can be generated using the 2D Fourier Transform. The Fourier Transform will convert the sampled signal into a frequency domain representation. The result can then be visualized as a 2D tensor image, with the frequency components represented as lines in the image. For 3D tensor images, the 3D Fourier Transform can be used to convert the sampled signal into a frequency domain representation. The result can then be visualized as a 3D tensor image, with the frequency components represented as lines in the image.