访问cv::Mat数据

 

  将单通道数据值变成3通道

	cv::Mat mask_face(H, w, CV_8UC3, ppu8Plane[0]);
	for (int i = 0; i < mask_glass.rows; i++) {
		for (int j = 0; j < mask_glass.cols; j++) {
			mask_face.at<uchar>(i, j * 3 + 0) = mask_face0.at<uchar>(i, j);
			mask_face.at<uchar>(i, j * 3 + 1) = mask_face0.at<uchar>(i, j);
			mask_face.at<uchar>(i, j * 3 + 2) = mask_face0.at<uchar>(i, j);
		}
	}

  

上一篇:苹果Apple Glass 智能眼镜专利:可侦测声音方位、自动清洁镜片


下一篇:codeforces 1459D. Glass Half Spilled