I am getting an error Reference to non-existent field 'BoundingBox'. while using the function please help
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 13 de Jul. de 2020
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 comentarios
Walter Roberson
el 17 de Jul. de 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/
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!