camera.utils — CV Utility Functions

The camera.utils module provides convenience methods for normalization and look vector math operations.

New in version 0.1.0.

autocnet.camera.utils.crossform(a)[source]

Convert a three element vector into a 3 x 3 skew matrix as per Hartley and Zisserman pg. 581

autocnet.camera.utils.normalize(a)[source]

Normalize a set of coordinates such that the origin is translated to the center and then scaled isotropically such that the average distance from the origin is $sqrt{2}$.

Parameters

a (arraylike) – (n,2) array of x,y or (n,3) homogeneous coordinates

Returns

normalizer – (3,3) transformation matrix

Return type

ndarray