Reference to non-existent field 'BoundingBox'. Error in findVehicle (line 10) bboxes = regions.BoundingBox; can anyone explain?
3 ビュー (過去 30 日間)
古いコメントを表示
function [bboxes,flow]= findVehicle(frameGray, opticFlow)
% Calculate optical flow
flow = estimateFlow(opticFlow,frameGray);
% Threshold Image
threshImage = ( flow.Magnitude > 4);
%Find Connected components and filter regions
[BW_out,regions] = filterRegions(threshImage);
if(size(regions) > 0)
bboxes = regions.BoundingBox;
else
bboxes = [];
end
end
0 件のコメント
採用された回答
Walter Roberson
2017 年 4 月 27 日
Please show the output of
which -all filterRegions
filterRegions does not appear to be part of any toolbox. It appears to be only part of one particular MATLAB demo https://www.mathworks.com/matlabcentral/fileexchange/57116-deep-learning-for-computer-vision-demo-code?focused=6805483&tab=function
2 件のコメント
Walter Roberson
2017 年 4 月 28 日
properties = regionprops(BW_out, {'Area', 'Eccentricity', 'EquivDiameter', 'EulerNumber', 'MajorAxisLength', 'MinorAxisLength', 'Orientation', 'Perimeter', 'BoundingBox'})
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!