Hello Mat

 找回密码
 立即注册
查看: 3386|回复: 0

sobel滤波器

[复制链接]

1294

主题

1520

帖子

110

金钱

管理员

Rank: 9Rank: 9Rank: 9

积分
22633
发表于 2017-3-8 23:30:28 | 显示全部楼层 |阅读模式
  1. function h = sobel_fspecial(type)
  2.     if nargin < 1
  3.         type = 'sobel';
  4.     end
  5.    switch type
  6.        case 'sobel'  % Sobel filter
  7.         h = [1 2 1;
  8.             0 0 0;
  9.             -1 -2 -1];
  10.    end
  11. end
复制代码


算法QQ  3283892722
群智能算法链接http://halcom.cn/forum.php?mod=forumdisplay&fid=73
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Python|Opencv|MATLAB|Halcom.cn ( 蜀ICP备16027072号 )

GMT+8, 2024-4-28 06:51 , Processed in 0.230125 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表