dingjiansw101 / AerialDetection

Apache License 2.0
793 stars 183 forks source link

rhbb2obb_v2.py, how rois convert to boxes #67

Open zhaojingru408 opened 3 years ago

zhaojingru408 commented 3 years ago

I have a question about hbb2obb_v2.py. The input boxes 's shape is (n, 4) (xmin, ymin, xmax, ymax).And calculate boxes ’s "heights = boxes[..., 2] - boxes[..., 0] + 1.0",equal to xmax - xmin.But I think "xmax - xmin" calculate boxes 's widths.Why did he do that?I sincerely hope you can answer it.

mmoghadam11 commented 3 years ago

I have a question about hbb2obb_v2.py. The input boxes 's shape is (n, 4) (xmin, ymin, xmax, ymax).And calculate boxes ’s "heights = boxes[..., 2] - boxes[..., 0] + 1.0",equal to xmax - xmin.But I think "xmax - xmin" calculate boxes 's widths.Why did he do that?I sincerely hope you can answer it.

did you find how it works?? its my question too @zhaojingru408 @dingjiansw101