在matlab 2013a中运行代码!!!! [英] run code in matlab 2013a !!!!
问题描述
hi
此代码在matlab 2009a版本中运行。但代码不在matlab 2013a版本中运行,并且错误消息是。
url网站:
http://groups.inf.ed.ac.uk/calvin / articulated_human_pose_estimation_code /
代码:
< a href =http://groups.inf.ed.ac.uk/calvin/articulated_human_pose_estimation_code/downloads/pose_estimation_code_release_v1.21.tgz> http://groups.inf.ed.ac.uk/calvin/articulated_human_pose_estimation_code/downloads /pose_estimation_code_release_v1.21.tgz
错误:
分段检测0 343 27 242 217 0 0 0 2
类:ubf
使用时出错。*
整数只能与相同的整数组合使用类或标量双打。
pm2segms中的错误(第74行)
segm(p).all = segm(p).all + segm(p).regs(:,:,rix)* rix;
SegmentTrack中的错误(第53行)
T.PM(dix).segm(:,:,p)= pm2segms(UncompressPM(T.PM(dix)),class_id,pars ,详细);
PoseEstimStillImage中的错误(第42行)
T.PM = SegmentTrack(fullfile(base_dir,img_dir),img_fname_format,T,segm_params,[base_dir
'/ segms_'classname] ,详细);
如何修复错误?
1- segm(p).all = segm(p).all + segm(p).regs(:,:,rix)* rix;
2-- T.PM(dix).segm(:,:,p)= pm2segms(UncompressPM(T.PM(dix)),class_id,pars,verbose);
3-- T.PM = SegmentTrack(fullfile(base_dir,img_dir),img_fname_format,T,segm_params,[base_dir'/ segms_'classname],详细);
错误告诉你声明的这一部分是错误的:
segm(p).regs(:,:,rix)* rix
错误表明元素乘法没有有效的数据类型。确保segm(p).regs(:,:,rix)
ANDrix
是有效类型(整数或双精度) )。
hi
This code runs in the matlab 2009a version. But the code does not run in the matlab 2013a version, and error messages are.
url site:
http://groups.inf.ed.ac.uk/calvin/articulated_human_pose_estimation_code/
code :
http://groups.inf.ed.ac.uk/calvin/articulated_human_pose_estimation_code/downloads/pose_estimation_code_release_v1.21.tgz
error:
Segmenting detection 0 343 27 242 217 0 0 0 2
Class: ubf
Error using .*
Integers can only be combined with integers of the same class, or scalar doubles.
Error in pm2segms (line 74)
segm(p).all = segm(p).all + segm(p).regs(:,:,rix)*rix;
Error in SegmentTrack (line 53)
T.PM(dix).segm(:,:,p) = pm2segms(UncompressPM(T.PM(dix)), class_id, pars, verbose);
Error in PoseEstimStillImage (line 42)
T.PM = SegmentTrack(fullfile(base_dir, img_dir),img_fname_format, T, segm_params, [base_dir
'/segms_' classname], verbose);
How do I fix the error?
1-- segm(p).all = segm(p).all + segm(p).regs(:,:,rix)*rix;
2-- T.PM(dix).segm(:,:,p) = pm2segms(UncompressPM(T.PM(dix)), class_id, pars, verbose);
3-- T.PM = SegmentTrack(fullfile(base_dir, img_dir),img_fname_format, T, segm_params, [base_dir '/segms_' classname], verbose);
The error is telling you that this part of the statement is wrong:
segm(p).regs(:,:,rix)*rix
The error is saying that the element-wise multiplication doesn't have valid data types. Make suresegm(p).regs(:,:,rix)
ANDrix
are valid types (integers or doubles).
这篇关于在matlab 2013a中运行代码!!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!