Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

1.0 KB
Raw Blame

KRt_from_projection, projections_from_fundamental, get_perpendicular, get_closest_point_on_epipolar_line and multiply_deg_one_poly raise ShapeError, naming the argument and its expected shape, when P, F_mat, points, pts2, a or b lacks the batch dimension or has an extra one. Previously they raised an IndexError, a RuntimeError or an AssertionError from a later step, or, for some inputs with an extra dimension, returned wrong values: multiply_deg_one_poly with (A, 4, 4) inputs, and the two epipolar functions when lines and points, or pts1 and pts2, both had shape (A, B, 3, 3). The two epipolar functions also raise ShapeError instead of a bare AssertionError when points or pts2 has a last dimension other than 2 or 3. The too-few-correspondences message of RANSAC and the matrix-shape message of NamedPose.from_rt and NamedPose.from_matrix no longer contain runs of spaces, and the latter prints each expected shape once, as [2, 2] instead of [2, 2]x[2, 2].