How to find 0 is present in any bounding box?
1 次查看(过去 30 天)
显示 更早的评论
I am having a problem...bbox in matlab are like [w,x,y,z] so is there any code which help me to check if any of one out these 4 variables are 0.
And also if I am having more than one bbox in single image...so is that valid or invalid?
Thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2021-12-4
It is common to have more than one bounding box in an image. For example if you are tracking faces, then you would expect more than one bounding box if there were more than one face.
If you have a vector bbox that consists of [w,x,y,z] then to test if any of them are zero or negative,
any(bbox <= 0)
10 个评论
Walter Roberson
2021-12-5
What results did you get?
The above is not intended as steps to fix the problem, the above is intended for you to tell us what the actual datatype is that is stored, so that we can give more correct code than we had above.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!