imshow in Octave under OSX 10.9.5 显示 y 轴反转的图像

imshow in Octave under OSX 10.9.5 shows the image with the y-axis inverted

根据八度帮助:

 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轴了?

谢谢。

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