⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_names_with_pm.asv

📁 matlab aamtool box
💻 ASV
字号:
%%%%%%%%%%%%%%%%%%%%%%
%
%  Verify Image List is consistent with point model list
%
%%%%%%%%%%%%%%%%%%%%%%
function aam=get_names_with_pm(aam,cwd)
ind=findstr(aam.modelDirec(19:end),'\')+17;
dirname=[cwd,'\PointModels\',aam.modelDirec(19:ind(1))];
d=dir([dirname,'\','*_pm*']);
%now go through the list of files that we need, taking them from the dir
dnames={d.name};
m=1;
for i=1:length(aam.am_imagenames)
    imagename=aam.am_imagenames{i};
    filename=imagename(1:regexpi(imagename,'.jpg')-1);
    for j=1:length(dnames)
        pointmodelname=dnames{j}(1:findstr(dnames{j},'_pm')-1);
        [filename,' ',pointmodelname]
        if strcmp(pointmodelname,filename) % non-empty disc file matches image filename
            selected_names{m}=imagename;
            m=m+1;
        end
    end
end
if exist('selected_names')
    aam=set(aam, 'am_imagenames',selected_names);
end

⌨️ 快捷键说明

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