iwindow.m

来自「来自澳大利亚Qeensland大学的计算机视觉Matlab工具箱。 This 」· M 代码 · 共 23 行

M
23
字号
%IWINDOW	General function of a neighbourhood%%	w = IWINDOW(image, se, matlabfunc)%	w = IWINDOW(image, se, matlabfunc, edge)%%	For every pixel in the input image it takes all neighbours for which %	the corresponding element in se are non-zero.  These are packed into%	a vector (in raster order from top left) and passed to the specified%	Matlab function.  The return value  becomes the corresponding output %	pixel value.%%	Edge handling flags control what happens when the processing window%	extends beyond the edge of the image. 	EDGE is either%		'border' the border value is replicated%		'none'	 pixels beyond the border are not included in the window%		'trim'	 output is not computed for pixels whose window crosses%			 the border, hence output image had reduced dimensions.%		'wrap'	 the image is assumed to wrap around%% SEE ALSO:  icircle%%	Copyright (c) Peter Corke, 1999  Machine Vision Toolbox for Matlab

⌨️ 快捷键说明

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