Lines Matching refs:costH
713 int comp, Mat_<float> &costV, Mat_<float> &costH) in computeCosts() argument
764 costH.create(roi.height+1, roi.width); in computeCosts()
775 costH(y - roi.y, x - roi.x) = costColor; in computeCosts()
780 costH(y - roi.y, x - roi.x) = costColor / costGrad; in computeCosts()
784 costH(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()
848 steps[nsteps++] = std::make_pair(cost(y, x-1) + costH(y, x-1), 1); 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()
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()