-
Notifications
You must be signed in to change notification settings - Fork 97
Description
my data generate code below:
cv::Mat detected_edges(Size(640,480),CV_8UC1,Scalar(0));
cv::line(detected_edges, Point(detected_edges.cols / 4, detected_edges.rows / 4),
Point(detected_edges.cols * 3 / 4, detected_edges.rows * 3 / 4), Scalar(255));
cv::Mat points(0, 2, CV_64F),
point(1, 2, CV_64F);
for (size_t row = 0; row < detected_edges.rows; row += 1)
{
for (size_t col = 0; col < detected_edges.cols; col += 1)
{
if (detected_edges.at(row, col) > std::numeric_limits::epsilon())
{
point.at(0) = col;
point.at(1) = row;
points.push_back(point);
}
}
}
and the is output:
Neighborhood calculation time = 0.001370 secs
Elapsed time = 0.535391 secs
Inlier number before = 0
Applied number of local optimizations = 0
Applied number of graph-cuts = 0
Number of iterations = 5000