void addMask(Mat src, Rect face) {
Mat mask = new Mat();
Mat matResize= new Mat();
Imgproc.resize(imgIn,matResize,face.size());
Core.extractChannel(matResize, mask, 3);
matResize.copyTo(src.submat(face),mask);
mask.release();
matResize.release();
}