How to create a mask in OpenCV.js?

asked 2018-02-12 09:46:01 -0600

my-lord gravatar image

updated 2018-02-12 10:18:35 -0600

I can create a mask in OPENCV C++ using cv::Mat::zeros and Rect.But i cannot find these features on OPENCV.js.How can i create a mask on OPENCV.js?

cv::Mat mask = cv::Mat::zeros(8, 8, CV_8U); // all 0
mask(Rect(2,2,4,4)) = 1;
edit retag flag offensive close merge delete

Comments

Have you solve your problem?

LBerger gravatar imageLBerger ( 2018-02-13 05:10:13 -0600 )edit