Ask Your Question
0

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-01-23 06:42:03 -0600

Lucy8 gravatar image
const mask = cv.Mat.zeros(8, 8, cv.CV_8UC3);
edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 1,235 times

Last updated: Jan 23 '19