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;elsebboxes = [];endend
MATLAB: Reference to non-existent field ‘BoundingBox’. Error in findVehicle (line 10) bboxes = regions.BoundingBox; can anyone explain
MATLABreference to non-existent field 'boundingbox'
Best Answer