Moving-Least-Squares icon indicating copy to clipboard operation
Moving-Least-Squares copied to clipboard

Overflow Error with mls_rigid_deformation

Open Rob-Wealt opened this issue 2 years ago • 0 comments

Hi there,

There is an overflow error, using np.int16 is not enough in this function, which was leading to errors when running on mac or black pixels at the centre of anchor points when using it on Windows.

When I updated it to the following: q = np.ascontiguousarray(q[:, [1, 0]].astype(np.int32)) p = np.ascontiguousarray(p[:, [1, 0]].astype(np.int32))

I saw that the issue was solved.

Deal with this information however you want!

Best, Rob

Rob-Wealt avatar Mar 31 '22 13:03 Rob-Wealt