⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zcross.m

📁 这是一个基于MATLAB的机器视觉工具箱,里面用很多非常有价值的的程序
💻 M
字号:
%ZCROSS		Zero-crossing detector%%	IZ = ZCROSS(image)%%	Crude zero-crossing detector.  Returns a binary image in which set (1)%	pixels correspond to negative input pixels adjacent to a transition to%	transition to a non-negative value.%% SEE ALSO:	ilog%%	Copyright (c) Peter Corke, 1999  Machine Vision Toolbox for Matlab% 1997 Peter Corkefunction iz = zcross(im)	w = numcols(im);	h = numrows(im);	% horizontal transitions	ineg = im(:,1:w-1) < 0;	ipos = im(:,2:w) >= 0;	iz = [ineg&ipos zeros(h,1)];	% vertical transitions	ineg = im(1:w-1,:) < 0;	ipos = im(2:w,:) >= 0;	% return if either happened at this pixel	iz = iz | [ineg&ipos; zeros(1,w)];

⌨️ 快捷键说明

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