OSX 10.9.5下的Octave中的imshow显示y轴反转的图像

时间:2015-12-06 17:34:51

标签: macos octave imshow

根据Octave的帮助:

 The origin (0, 0) for images is located in the
 upper left.  For ordinary plots, the origin is located in the lower
 left.  Octave handles this inversion by plotting the data normally,
 and then reversing the direction of the y-axis by setting the
 'ydir' property to "reverse".

但是,imshow显示左下角的原点图像,因此图像垂直镜像。

这是安装错误,无证件更改的标志,还是?

有没有办法改变这个,这样就不必每次都反转Y轴了?

谢谢。

1 个答案:

答案 0 :(得分:0)

看看https://www.gnu.org/software/octave/doc/interpreter/Rearranging-Matrices.html 我也有这个问题,我找到解决它的唯一方法是翻转矩阵。如果您的图像是垂直镜像的,请使用命令fliplr(A),它将镜像矩阵A.