📄 findedge.m
字号:
function [slope, int] = findedge(cent, nlin)% [slope, int] = findedge(cent, nlin) Fits linear equation to data% Fit linear equation to data, written to process edge location array% cent = array of (centroid) values% nlin = length of cent% slope and int are from the least-square fit% x = int + slope*cent(x)% Note that this is the inverse of the usual cent(x) = int + slope*x% form% Peter Burns 5 Aug. 2002% Copyright (c) International Imaging Industry Association index=[0:nlin-1]; [slope int] = polyfit(index, cent, 1); % x = f(y)return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -