I am getting an error Reference to non-existent field 'BoundingBox'. while using the function please help
Show older comments
function [bboxes,flow] = findPet(frameGray, opticFlow)
% Calculate Optical Flow
flow = estimateFlow(opticFlow,frameGray);
% Threshold Image
threshImage = ( flow.Magnitude > 4);
% Find connected components and filter regions
[~,regions] = filterRegions(threshImage);
if(size(regions) > 0)
bboxes = regions.BoundingBox;
else
bboxes = [];
end
end
3 Comments
Walter Roberson
on 13 Jul 2020
pratyush ghosh
on 13 Jul 2020
pratyush ghosh
on 13 Jul 2020
Edited: Walter Roberson
on 13 Jul 2020
Answers (1)
Walter Roberson
on 13 Jul 2020
0 votes
You need to pull in the newer version of cnnPredict, which is at https://github.com/NVIDIA-developer-blog/code-samples/tree/master/MATLAB_deeplearning
2 Comments
pratyush ghosh
on 14 Jul 2020
Walter Roberson
on 17 Jul 2020
Which packages did you load from where to put together this code? The ones I find on mathworks.com do not reference dilate, but I do see dilate documented for layers at https://www.vlfeat.org/matconvnet/mfiles/simplenn/vl_simplenn/
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!