Lines Matching refs:nsteps
832 int nsteps; in estimateSeam() local
843 nsteps = 0; 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()
855 if (nsteps) in estimateSeam()
857 std::pair<float, int> opt = *min_element(steps, steps + nsteps); in estimateSeam()
873 nsteps = 0; 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()
885 if (nsteps) in estimateSeam()
887 std::pair<float, int> opt = *min_element(steps, steps + nsteps); in estimateSeam()