• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

边缘检测程序(matlab)

原作者: [db:作者] 来自: [db:来源] 收藏 邀请
% Selectmethod:选择边缘检测方法
% Loadnew Image:读入被选择的图像
% Updatethreshctrl:数据更新
% Updatelogs1ze-:更新与LoG滤波器相关的数据
if nargin<l
action='initializeedgedetection'i
end:
feval(action, varargin
turn
号88函数 Initializeedgedetection
function Initializeedgedetection()
h= findobj (allchild(0),'tag''edgedetectionsoft')
if isempty(h)
figure(h(1))
return
ena
screend= get(0,'screendepth)i
if screend> 8
grayres=256;
else
grayres = 128;
e
Edgedetectionfig= figure(
Name','基于差分运算的数字图像边缘检测软件',
'numbertitle','off,' handlevisibility''on'
tag','基于差分运算的数字图像边缘检测软件',
Visible,'off,'resize','off
'busyaction','queue,'interruptible,'off',
Color',[.8.8.8]
Integer handle','off.
doublebuffer'on',
colormap',gray( grayres))
figpos= get( Edgedetectionfig,'position')
调节图像窗口尺寸
figpos(3:4)=[560420];
horizdecorations =10; resize controls, etc
vertdecorations=45;
s title bar, etc.
e- get(0,'screens
if(so
size(3)<=1
No display connected apparentl
y
d
screens1ze(3:4)=[10000100000];
if(((figpos(3)+ horizdecorations)> screensize(3))
((figpos(4)+y
窗口尺寸太小
oratio
s)>
delete( Edgedetectionfig)i
creensize(4)))
r(['s
n resolutio
on 1s too
or text f
d
are to
g) te
n
dx screensize(3)- figpos(1)- figpos(3)- horizdecorations;
s edgesoft'1)
dy= screensize(4)- figpos(2)- figpos(4)-vertdecorationsi

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Delphi json解析相关发布时间:2022-07-18
下一篇:
Delphi 添加外部Form单元的方法!发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap