区域纹理特征的度量

区域纹理特征的度量

参照书籍《数字图像处理(冈萨雷斯)》

第一步:自定义两个函数 statistical 和statmoments(我一开始只定义一个函数导致程序出现错误)

第二步:将自定义的两个函数分别写入两个脚本文件中。

第一个函数:

function [t]=statxture(f,scale)

 

%STATXTURE Computes statistical measures of texture in an image.

% T = STATXURE(F, SCALE) computes six measures of texture from an

% image (region) F. Parameter SCALE is a 6-dim row vector whose

% elements multiply the 6 corresponding elements of T for scaling

% purposes. If SCALE is not provided it defaults to all 1s. The

% output T is 6-by-1 vector with the following elements:

% T(1) = Average gray level

% T(2) = Average contrast

% T(3) = Measure of smoothness

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值