I am getting an error Reference to non-existent field 'BoundingBox'. while using the function please help
古いコメントを表示
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 件のコメント
Walter Roberson
2020 年 7 月 13 日
pratyush ghosh
2020 年 7 月 13 日
pratyush ghosh
2020 年 7 月 13 日
編集済み: Walter Roberson
2020 年 7 月 13 日
回答 (1 件)
Walter Roberson
2020 年 7 月 13 日
0 投票
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 件のコメント
pratyush ghosh
2020 年 7 月 14 日
Walter Roberson
2020 年 7 月 17 日
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/
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!