Home | History | Annotate | Download | only in src

Lines Matching refs:Cell

91     grid_.assign(ncells.area(), Cell());
100 // process each cell
112 // estimate translation model at the current cell using RANSAC
114 const Cell &cell = grid_[ci];
120 if (!cell.empty())
124 idx = cell[static_cast<unsigned>(rng) % cell.size()];
129 for (size_t i = 0; i < cell.size(); ++i)
131 x1 = points0_[cell[i]].x + dx;
132 y1 = points0_[cell[i]].y + dy;
133 if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) <
153 for (size_t i = 0; i < cell.size(); ++i)
155 x1 = points0_[cell[i]].x + dxBest;
156 y1 = points0_[cell[i]].y + dyBest;
157 if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) <
160 inliers[ninliers++] = cell[i];
180 for (size_t i = 0; i < cell.size(); ++i)
182 x1 = points0_[cell[i]].x + dxBest;
183 y1 = points0_[cell[i]].y + dyBest;
184 if (sqr(x1 - points1_[cell[i]].x) + sqr(y1 - points1_[cell[i]].y) <
187 mask_[cell[i]] = 1;
191 mask_[cell[i]] = 0;