meanshiftinit.m
来自「Mean shift sementation. matlab」· M 代码 · 共 16 行
M
16 行
function g=meanshiftinit(x,h) ;% initialize the mean-shift procedure% What is the maximum distance we want to take into accounttolk=1e-3 ; tolx=sqrt(-2*log(tolk)) ;hmax=tolx * h ; g=rangegrid(x,hmax) ;g.hmax=hmax ;g.h=h ;g.plot=0 ;%g.x=x ;if g.plot, clf ; plot(x(:,2),x(:,1),'b.') ; axis equal ; hold on ;end ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?