iopen.m

来自「machine vision 工具箱」· M 代码 · 共 25 行

M
25
字号
%IOPEN	Morphological opening%%	B = IOPEN(A, SE [,N])%%	Return the image A after morphological opening with the structuring%	element SE.  N (default to 1) erosions then N dilations are performed.%% SEE ALSO:	iclose imorph%%%	Copyright (c) Peter Corke, 1999  Machine Vision Toolbox for Matlabfunction b = iopen(a, se, n)	if nargin == 2,		n = 1;	end	b = a;	for i=1:n,		b = imorph(b, se, 'min');	end	for i=1:n,		b = imorph(b, se, 'max');	end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?