labelim.m
来自「matlab 模式识别工具包 希望能对你们有用」· M 代码 · 共 30 行
M
30 行
%LABELIM Construct image from objectlabels in case of feature images%% IM = LABELIM(A)% IM = A*LABELIM%% If A is a dataset containing images stored as features, so% each pixel is an object, than IM is the image containing the% labels of the objects.% % See also DATASETS, CLASSIM% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction labels = labelim(a)if nargin == 0 labels = mapping('classim','fixed'); returnendif ~isfeatim(a) error('Input should be a dataset containing images as features')end[n,m] = dataimsize(a);J = getlabn(a);labels = reshape(J,n,m);return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?