How to edit/read pixel values in OpenCv from Mat variable?

后端 未结 2 2122
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 03:54

I am looking for an efficient way for editing/reading pixels from Mat (or Mat3b) variable.

I have used :-

Image.at(i,j)
2条回答
  •  一向
    一向 (楼主)
    2020-12-14 04:35

    This is one of the most efficient way for editing/reading pixels from cv::Mat. Create pointer to a row (of specific channel if needed)

    for(int i=0; i*/(i);
      for(int j=0; j

提交回复
热议问题