space frequency representation of images in matlab
Here is pseudo matlab code for doing it.

X = 2D_image;
Y = 3D_array_for_storage;
Z = 4D_array_for_final_result;
for m = 1 : Num_cols_in_X
  Y(m,:,:) = spectrogram(X(:,m));
end
for m = 1 : size(Y,2)
  for n = 1 : size(Y,3)
    Z(:,:,m,n) = spectrogram(Y(:,m,n));
  end
end


The result is a 4-D array that is row-time x row-freq x col-time x col-freq. (It does not have to be time and frequency per se. The units of the axes are arbitrary; they could be second, meters, volts, etc.) As for how you display, I have no idea what's best for your case. A movie could display any three of the dimensions. Perhaps you could tile the fourth dimension? It would all depend of the specifics.