Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望获得整个图像的线性轮廓。该图像Img是一个 800x800 双数组(它的一些元素是 NaN)。当我improfile以交互方式使用和定义路径时,我得到了我想要的配置文件。
Img
improfile
当我写:
C=improfile(Img, [1 1], [700 700]);
C 只包含一个 NaN 元素。
有人可以帮忙吗?
Matlab 索引从 1 开始的矩阵,而不是 0,因此您的输入坐标无效。
尝试这样的事情:
C = improfile(Img, [1 800], [1 800]);