I have code written using OpenCV in C ++, and this code uses the setTo function. It is mainly used as:
cv::Mat xx; //prefedined and has some values cv::Mat yy; // initially empty yy.setTo(0,xx);
So can you explain what this setTo means here? Does it leave all zero values ββin yy or puts 1, where xx is nonzero, and 0, where xx is also zero?
source share