CRect rect;

然后 获取矩形控件。那么这个矩形控件的左上 和右下 分别对应,left,top;right,bottom。

left,top为左上角的点坐标

right,bottom为右下角的点坐标

转换一下为opencv常用的:

x=left

y=top

width=right-left

height=bottom-top 

 

MFC:pic控件的矩形的left、right、top、bottom 坐标位置

 

相关文章:

  • 2022-03-07
  • 2021-09-18
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-01-02
  • 2021-09-14
  • 2021-09-01
  • 2021-11-13
相关资源
相似解决方案