How to convert form [xmin ymin xmax ymax] to [x y width height] in image?

4 views (last 30 days)
I have a detected box in [xmin ymin xmax ymax] but i need it in the format [x y width height] to use it in
overlapRatio = bboxOverlapRatio(bboxA,bboxB) How can i do this
thanks in advance

Accepted Answer

Walter Roberson
Walter Roberson on 9 Apr 2018
[xmin, ymin, xmax-xmin+1, ymax-ymin+1]

More Answers (0)

Categories

Find more on Propagation and Channel Models 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!