Lines Matching refs:comp1
584 bool DpSeamFinder::getSeamTips(int comp1, int comp2, Point &p1, Point &p2)
586 CV_Assert(states_[comp1] & INTERS);
593 for (size_t i = 0; i < contours_[comp1].size(); ++i)
595 int x = contours_[comp1][i].x;
596 int y = contours_[comp1][i].y;
934 int comp1, int comp2, const std::vector<Point> &seam, bool isHorizontalSeam)
936 Mat_<int> mask = Mat::zeros(brs_[comp1].y - tls_[comp1].y,
937 brs_[comp1].x - tls_[comp1].x, CV_32S);
939 for (size_t i = 0; i < contours_[comp1].size(); ++i)
940 mask(contours_[comp1][i] - tls_[comp1]) = 255;
943 mask(seam[i] - tls_[comp1]) = 255;
947 int l1 = comp1+1, l2 = comp2+1;
953 if (!mask(y, x) && labels_(y + tls_[comp1].y, x + tls_[comp1].x) == l1)
956 for (size_t i = 0; i < contours_[comp1].size(); ++i)
958 int x = contours_[comp1][i].x - tls_[comp1].x;
959 int y = contours_[comp1][i].y - tls_[comp1].y;
986 int x = seam[i].x - tls_[comp1].x;
987 int y = seam[i].y - tls_[comp1].y;
999 int x = seam[i].x - tls_[comp1].x;
1000 int y = seam[i].y - tls_[comp1].y;
1021 for (size_t i = 0; i < contours_[comp1].size(); ++i)
1023 int x = contours_[comp1
1024 int y = contours_[comp1][i].y;
1031 connect2[mask(y - tls_[comp1].y, x - tls_[comp1].x)]++;
1039 connectOther[mask(y - tls_[comp1].y, x - tls_[comp1].x)]++;
1047 double len = static_cast<double>(contours_[comp1].size());
1056 labels_(y + tls_[comp1].y, x + tls_[comp1].x) = l2;