MATLAB: Imshow vs mesh: Filter response flipped

2-d filterfrequency responseimshowMATLABmeshSignal Processing Toolbox

This is the same 2-D frequency response plotted using imshow and mesh. Why is the response flipped in imshow?
Using imshow:
Using mesh:

Best Answer

By convention for images the origin is the top left corner and the y axis points down. You can see that clearly if you make the axis visible after displaying your image:
imshow(yourimage);
axis on
Related Question