gpt4 book ai didi

image - 图像上的刻度线是否有可能以像素的“边缘”为中心?

转载 作者:太空宇宙 更新时间:2023-11-03 20:31:55 26 4
gpt4 key购买 nike

如果我在 Matlab 中使用 image() 命令制作一个 4 x 4 像素的图像,它会将刻度线居中放置在像素的中间。我希望刻度线以像素的左下角为中心。有什么方法可以做到这一点吗?

最佳答案

您可以指定像素的 x 和 y 坐标并将它们移动 0.5:

image([0.5,3.5],[0.5,3.5],magic(4))

关于image - 图像上的刻度线是否有可能以像素的“边缘”为中心?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2656417/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com