Stupid lib to extract gravity from pycolmap reconstructions (or just numpy arrays)
Project description
easy-gravity
A naive way to extract gravity from poses
See here for some alternative methods
Method
Assume cameras are not in plane rotated. This means that gravity must lie on the "pointing/up" plane for each camera. For any vector $x$ we can easily compute the squared distance to this plane as $x \cdot \hat{n}$. The normals of the plane is simply the x-direction of the camera. Differentiate this sum and solve for 0 you get an eigenvalue eq. Solve for smallest eigenvalue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file easy_gravity-0.2.1.tar.gz
.
File metadata
- Download URL: easy_gravity-0.2.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601bf0b92653cc847c50e5baafb8393d14f86ca6c486c46c2e8261518177a424 |
|
MD5 | 5cced1869873a87a64d0c089c48c0bc4 |
|
BLAKE2b-256 | 57a0dabd4c1900be0194956b092441b09e58ceed016ff9622ed6d725eafb9c05 |
File details
Details for the file easy_gravity-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: easy_gravity-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 750363314dd31570dfcb45f6cfd363a19572cfc57d5cffb14ba6076c4ce35b13 |
|
MD5 | 73dad44c1382963841cec24dad5e25f1 |
|
BLAKE2b-256 | 0d97d276e4b3853ad9a65b0e7892df0608492c80ec9b2c3d3a6328aaaab2b6c2 |