xdem.coreg.ICP
fails very underscriptively when not enough points are available
#422
Labels
invalid
This doesn't seem right
I tried wrap my head around an error I got which even took me to the OpenCV C++ source code. Ooga booga!
When running
.fit_pts()
on a dataset that eventually didn't have enough points for registration (I'm still trying to figure out where the problem is; might be another issue coming up), ICP fails with a very strange error:Some debugging later and I realized one of the point clouds were empty, which the above error is obviously trying to tell me.
There's already an exception handler (see below) for this but for some reason the exception is new. Easy fix is to just catch both exceptions and print the nicer error message.
xdem/xdem/coreg/affine.py
Lines 543 to 553 in 3956073
The text was updated successfully, but these errors were encountered: