Lines Matching refs:costV
713 int comp, Mat_<float> &costV, Mat_<float> &costH) in computeCosts() argument
740 costV.create(roi.height, roi.width+1); in computeCosts()
751 costV(y - roi.y, x - roi.x) = costColor; in computeCosts()
756 costV(y - roi.y, x - roi.x) = costColor / costGrad; in computeCosts()
760 costV(y - roi.y, x - roi.x) = badRegionCost; in computeCosts()
796 Mat_<float> costV, costH; in estimateSeam() local
797 computeCosts(image1, image2, tl1, tl2, comp, costV, costH); in estimateSeam()
850 … steps[nsteps++] = std::make_pair(cost(y-1, x-1) + costH(y-1, x-1) + costV(y-1, x), 2); in estimateSeam()
852 … steps[nsteps++] = std::make_pair(cost(y+1, x-1) + costH(y+1, x-1) + costV(y, x), 3); in estimateSeam()
878 steps[nsteps++] = std::make_pair(cost(y-1, x) + costV(y-1, x), 1); in estimateSeam()
880 … steps[nsteps++] = std::make_pair(cost(y-1, x-1) + costV(y-1, x-1) + costH(y, x-1), 2); in estimateSeam()
882 … steps[nsteps++] = std::make_pair(cost(y-1, x+1) + costV(y-1, x+1) + costH(y, x), 3); in estimateSeam()