Lines Matching refs:image2
203 const Mat &image1, const Mat &image2, Point tl1, Point tl2, in process() argument
207 CV_Assert(image2.size() == mask2.size()); in process()
211 Point intersectBr(std::min(tl1.x + image1.cols, tl2.x + image2.cols), in process()
212 std::min(tl1.y + image1.rows, tl2.y + image2.rows)); in process()
219 unionBr_ = Point(std::max(tl1.x + image1.cols, tl2.x + image2.cols), in process()
220 std::max(tl1.y + image1.rows, tl2.y + image2.rows)); in process()
262 resolveConflicts(image1, image2, tl1, tl2, mask1, mask2); in process()
400 const Mat &image1, const Mat &image2, Point tl1, Point tl2, Mat &mask1, Mat &mask2) in resolveConflicts() argument
403 computeGradients(image1, image2); in resolveConflicts()
450 if (estimateSeam(image1, image2, tl1, tl2, c1, p1, p2, seam, isHorizontalSeam)) in resolveConflicts()
526 void DpSeamFinder::computeGradients(const Mat &image1, const Mat &image2) in computeGradients() argument
529 CV_Assert(image2.channels() == 3 || image2.channels() == 4); in computeGradients()
542 if (image2.channels() == 3) in computeGradients()
543 cvtColor(image2, gray, COLOR_BGR2GRAY); in computeGradients()
544 else if (image2.channels() == 4) in computeGradients()
545 cvtColor(image2, gray, COLOR_BGRA2GRAY); in computeGradients()
690 float diffL2Square3(const Mat &image1, int y1, int x1, const Mat &image2, int y2, int x2) in diffL2Square3() argument
693 const T *r2 = image2.ptr<T>(y2); in diffL2Square3()
700 float diffL2Square4(const Mat &image1, int y1, int x1, const Mat &image2, int y2, int x2) in diffL2Square4() argument
703 const T *r2 = image2.ptr<T>(y2); in diffL2Square4()
712 const Mat &image1, const Mat &image2, Point tl1, Point tl2, in computeCosts() argument
720 if (image1.type() == CV_32FC3 && image2.type() == CV_32FC3) in computeCosts()
722 else if (image1.type() == CV_8UC3 && image2.type() == CV_8UC3) in computeCosts()
724 else if (image1.type() == CV_32FC4 && image2.type() == CV_32FC4) in computeCosts()
726 else if (image1.type() == CV_8UC4 && image2.type() == CV_8UC4) in computeCosts()
748 float costColor = (diff(image1, y + dy1, x + dx1 - 1, image2, y + dy2, x + dx2) + in computeCosts()
749 … diff(image1, y + dy1, x + dx1, image2, y + dy2, x + dx2 - 1)) / 2; in computeCosts()
772 float costColor = (diff(image1, y + dy1 - 1, x + dx1, image2, y + dy2, x + dx2) + in computeCosts()
773 … diff(image1, y + dy1, x + dx1, image2, y + dy2 - 1, x + dx2)) / 2; in computeCosts()
791 const Mat &image1, const Mat &image2, Point tl1, Point tl2, int comp, in estimateSeam() argument
797 computeCosts(image1, image2, tl1, tl2, comp, costV, costH); in estimateSeam()