|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
程序的内容是设计了一个界面去实现三维模型的检索,具体程序:
function 3d_retr
addpath(genpath('E:\3Dmodelretri_DBN'));
load index_cam20.mat
load img_show.mat
load ZMD_CSS_6600.mat
dir = 'F:\aa-台大\';
ZMD = ZMD_CSS;
top = 20;
[m n] = size(ZMD);
n_class = 10;
n_view = 20;
n_model = 330;
order = [0,1,2,3,4,5,6,7,8,9,10,11,12];
% for p=1:size(q_img,2)
q_img = image_blur(q_img,3,3);
[V_zm,zmlist,cidx,V_nm] = lans_zmoment(q_img,order);
f_zmd = abs(V_zm);
f1 = f_zmd/sum(f_zmd);
q_img = double(q_img);
CSSD = image_CSS(q_img,0.3,50);
f2 = CSSD;
sketch = [f1,f2'];
% end
% figure(2),q_img = image_blur(q_img,10,10);imshow(q_img);
for k = 1:n_model
for i = 1:n_view
d_zmd(i,1) = norm(sketch - ZMD{(k-1)*20+i});
end
d_min(k) = mean(min(d_zmd));
end
% %%------------------------------------------
% %%3D object retrieval based on model query
% % n =187;imshow([dir,img_show{n}]);
% % for k = 1:NumberOfModel
% % for i = 1:NumberOfLightfild
% % for p = 1:NumberOfLightfild
% % d_zmd(i,p) = norm(ZMD{(n-1)*20+p}-ZMD{(k-1)*20+i});
% % end
% % end
% % d_min(k) = mean(min(d_zmd));
% % end
[d_sort,B] = sort(d_min');
% %___________To show results_________________
figure(3);
for i=1:top
subplot(4,5,i);
imshow([dir,img_show{B(i)}]);
%xlabel([num2str(B(i,1))]);
end
程序运行后出现如上界面,但是上传照片检索有错误,如下:
To get started, select MATLAB Help or Demos from the Help menu.
The element type "name" must be terminated by the matching end-tag "</name>".
Could not parse the file: d:\matlab\toolbox\ccslink\ccslink\info.xml
??? Error using ==> load
Unable to read file img_show.mat: No such file or directory.
Error in ==> q_model_GUI at 5
load img_show.mat
Error in ==> retr_GUI>pushbutton2_Callback at 103
B2 = q_model_GUI(n);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> retr_GUI at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
什么意思?还有程序不太明白,希望各位大大帮忙,给些这种图形界面设计的例子。小白在这谢谢给位大大拉~~~
|
|