I am getting an error Reference to non-existent field 'BoundingBox'. while using the function please help
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 13 Juil 2020
pratyush ghosh
le 13 Juil 2020
pratyush ghosh
le 13 Juil 2020
Modifié(e) : Walter Roberson
le 13 Juil 2020
Réponses (1)
Walter Roberson
le 13 Juil 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 commentaires
pratyush ghosh
le 14 Juil 2020
Walter Roberson
le 17 Juil 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/
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!