isobjim.m

来自「模式识别工具箱。非常丰富的底层函数和常见的统计识别工具」· M 代码 · 共 35 行

M
35
字号
%ISOBJIM test if the dataset contains objects that are images%%  N = ISOBJIM(A)%      ISOBJIM(A)%% INPUT%  A  input dataset%% OUTPUT%  N  logical value%% DESCRIPTION% True if dataset contains objects that are images. If no output is required,% false outputs are turned into errors. This may be used for assertion.%% SEE ALSO% ISDATASET, ISDATAIM% $Id: isobjim.m,v 1.4 2007/05/04 08:35:33 duin Exp $function n = isobjim(a)	prtrace(mfilename);		n = isa(a,'dataset') & length(a.featsize) > 1;	% generate error if input is not a dataset with image data with   % pixels being features AND no output is requested (assertion)	if nargout == 0 & n == 0		error([newline '---- Dataset with object images expected -----'])	endreturn

⌨️ 快捷键说明

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