Mat mat = imread("baby.jpg");
    
Mat p = mat.col(20).row(20);
uchar* ptr = (uchar*) p.data;
int B = ptr[0];
int G = ptr[1];
int R = ptr[2];
cout<<"res:"<<B<<" "<<G<<" "<<R<<" "<<endl;

 

相关文章:

  • 2021-08-10
  • 2021-08-09
  • 2022-03-01
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案