Commit a54f66ef authored by Zhiping Jiang (蒋志平)'s avatar Zhiping Jiang (蒋志平) 💬

Fxi bug in cve::complex::linSpace

parent 1bca0182
......@@ -50,13 +50,14 @@ namespace cve {
}
return unwrapped_phase;
}
cv::Mat1d linSpace(double start, double end, double interval) {
std::vector<double> result;
for (double s= start; s<end; s+=interval) {
auto count = 0;
for (double s= start; count < (end - start)/interval; s+=interval, count++) {
result.push_back(s);
}
result.push_back(end);
return cv::Mat1d(result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment