How to fill Matrix with zeros in OpenCV?

前端 未结 8 983
-上瘾入骨i
-上瘾入骨i 2020-12-15 03:36

The code below causes an exception. Why?

#include 
#include 

using namespace cv;
using namespace std;

void mai         


        
8条回答
  •  攒了一身酷
    2020-12-15 04:21

    I presume you are talking about filling zeros of some existing mat? How about this? :)

    mat *= 0;

提交回复
热议问题