lhipartindex.m

来自「This code can parse any image in matlab.」· M 代码 · 共 21 行

M
21
字号
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 + =
减小字号Ctrl + -
显示快捷键?