%endpoint_fcn源程序
function is_end_point=endpoint_fcn(nhood)
%决定一个像素是否为一个端点
%is_end_point=endpoint_fcn(nhood)接受一个3*3的二维邻域nhood,如果中心元素是一个 端点,则返回1,否则返回0.
is_end_point=nhood(2,2) & (sum(nhood(:))==2);
endpoint_fcn.m
最新推荐文章于 2021-06-30 15:43:13 发布