Mat img, dst;
    Rect imgroi(0, 0, img.cols, img.rows);//小图像img需要复制到大图的像素区域rect
    Rect dstroi(0, 0, img.cols, img.rows);//大图像dst中接收的区域rect
    Mat  dstregion = dst(dstroi);//获取大图像dst接收区域的像素应用
    img(imgroi).convertTo(dstregion, dstregion.type(), 1, 0);//将图像img的该区域复制到大图像接收区域

 

相关文章:

  • 2021-06-02
  • 2021-09-16
  • 2022-12-23
  • 2021-09-05
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2021-09-30
  • 2021-04-10
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2022-02-03
相关资源
相似解决方案