lhiobjectindex.m
来自「This code can parse any image in matlab.」· M 代码 · 共 20 行
M
20 行
function jc = LHIobjectindex(annotation, name, method);
% jc = LHIobjectindex(annotation, name)
% Finds an object class in the annotation struct and returns the indices
%
% D = LHIquery(database, 'name', 'car');
% jc = LHIobjectindex(D(1).annotation, 'car');
%
% This will return the indices of the object class 'car' in the first
% image returned by the query.
if nargin < 3
method = '';
end
jc = [];
if isfield(annotation, 'object')
query = parseContent(name);
jc = findobject({annotation.object.name}, query, method); % find object index
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?