Home | History | Annotate | Download | only in src

Lines Matching full:seam

150     Mat seam = dist1 < dist2;
156 if (seam.at<uchar>(y + gap, x + gap))
447 std::vector<Point> seam;
450 if (estimateSeam(image1, image2, tl1, tl2, c1, p1, p2, seam, isHorizontalSeam))
451 updateLabelsUsingSeam(c1, c2, seam, isHorizontalSeam);
792 Point p1, Point p2, std::vector<Point> &seam, bool &isHorizontal)
804 // estimate seam direction
841 // seam follows along upper side of pixels
871 // seam follows along left side of pixels
899 // restore seam
902 seam.clear();
903 seam.push_back(p + roi.tl());
907 for (; p.x != src.x; seam.push_back(p + roi.tl()))
916 for (; p.y != src.y; seam.push_back(p + roi.tl()))
925 std::reverse(seam.begin(), seam.end());
927 CV_Assert(seam.front() == p1);
928 CV_Assert(seam.back() == p2);
934 int comp1, int comp2, const std::vector<Point> &seam, bool isHorizontalSeam)
942 for (size_t i = 0; i < seam.size(); ++i)
943 mask(seam[i] - tls_[comp1]) = 255;
945 // find connected components after seam carving
984 for (size_t i = 0; i < seam.size(); ++i)
986 int x = seam[i].x - tls_[comp1].x;
987 int y = seam[i].y - tls_[comp1].y;
997 for (size_t i = 0; i < seam.size(); ++i)
999 int x = seam[i].x - tls_[comp1].x;
1000 int y = seam[i].y - tls_[comp1].y;