Lines Matching refs:image2

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