【目标检测】已知top, left, bottom, right 求 xmin,ymin,xmax,ymax

前段时间在项目实践过程中遇到xmin,ymin,width,height 和 xmin,ymin,xmax,ymax相互转换的问题,请看https://blog.csdn.net/AugustMe/article/details/116643384

1 最近又遇到一个新问题

已知top, left, bottom, right 求 xmin,ymin,xmax,ymax

2 解决方案

xmin = left
ymin = top
xmax = right
ymax = bottom

其中(xmin , ymin )是这个矩形区域的左上角,(xmax , ymax )是这个矩形区域的右下角。只要这两个点确定了,这个矩形区域就被唯一确定下来。

参考

https://zhidao.baidu.com/question/40372241.html

猜你喜欢

转载自blog.csdn.net/AugustMe/article/details/117121789
今日推荐