本文介绍了在matlab 2013a中运行代码!!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 hi 此代码在matlab 2009a版本中运行。但代码不在matlab 2013a版本中运行,并且错误消息是。 url网站: http://groups.inf.ed.ac.uk/calvin / articulated_human_pose_estimation_code / 代码: 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) AND rix 是有效类型(整数或双精度) )。 hiThis 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.tgzerror:Segmenting detection 0 343 27 242 217 0 0 0 2Class: ubfError 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)*rixThe error is saying that the element-wise multiplication doesn't have valid data types. Make sure segm(p).regs(:,:,rix) AND rix are valid types (integers or doubles). 这篇关于在matlab 2013a中运行代码!!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-14 18:19