【问题标题】:Label set x and y-axes to cartesian coordinate on an image将 x 和 y 轴标记为图像上的笛卡尔坐标
【发布时间】:2013-10-30 20:53:36
【问题描述】:

我有一个 2032 x 2032 的图像 (image1) 我正在尝试使用

figure(1)
imagesc(image1);

x 轴和 y 轴显示像素数(即 1-2032),最小值位于左上角,最大值位于右下角。

如何将 x 轴和 y 轴设置为从 (-1016 到 1016) 且 (0,0) 位于中心的笛卡尔坐标设置?

【问题讨论】:

  • 您尝试help image 看看您有哪些可用选项?

标签: matlab axis cartesian-coordinates


【解决方案1】:

您可以在imagesc中指定坐标轴值:

imagesc(-1016:1015,-1016:1015,image1):

【讨论】:

    猜你喜欢
    • 2021-04-27
    • 1970-01-01
    • 1970-01-01
    • 2017-10-10
    • 2016-04-14
    • 2020-07-04
    • 2020-07-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多