📄 lhipartindex.m
字号:
function jc = LHIpartindex(object, 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 = [];
Nparts = length(object.parts);
if Nparts > 0
query = parseContent(name);
jc = findobject({object.parts.name}, query, method); % find object index
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -