Clear Filters
Clear Filters

Imshow vs mesh: Filter response flipped?

4 views (last 30 days)
This is the same 2-D frequency response plotted using imshow and mesh. Why is the response flipped in imshow?
Using imshow:
Using mesh:

Accepted Answer

Guillaume
Guillaume on 4 Nov 2017
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
  2 Comments
Sndn_Shr
Sndn_Shr on 4 Nov 2017
Thanks for the explanation! Is there a way to move the origin? to bottom-left and center?
Guillaume
Guillaume on 4 Nov 2017
axis xy
to force the y axis to go up instead of down.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!