currentImg, CV_GRAY2BGR); 47 //保存mask金字塔的每一层图像 48 maskGaussianPyramid.push_back(currentImg); //0-level 49 50 currentImg = blendMask; 51 for (int l = 1; l<levels + 1; l++) { 52 Mat _down;
5758Mat down;59cvtColor(_down,down,CV_GRAY2BGR);60//add color blend mask into mask Pyramid61maskGaussianPyramid.push_back(down);62currentImg=_down;63}64}6566voidbuildLaplacianPyramid(constMat&img,vector<Mat>&lapPyr,Mat&HighestLevel)67{68lapPyr.clear();69Mat currentImg=img;70for(int l=...