Commit 60aa8d9f authored by Hamdi Sahloul's avatar Hamdi Sahloul

Stop ICP iterations before solver crashes due to underdetermined linear system

parent 53e34260
......@@ -452,7 +452,7 @@ int ICP::registerModelToScene(const Mat& srcPC, const Mat& dstPC, double& residu
hashtableDestroy(duplicateTable);
if (selInd)
if (selInd >= 6)
{
Mat Src_Match = Mat(selInd, srcPCT.cols, CV_64F);
......
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