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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_gravity-0.2.2.tar.gz.
File metadata
- Download URL: easy_gravity-0.2.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1ed203864b1ea1ef18af013d73e40f5624fc5359adfe3c385152fe82f02487
|
|
| MD5 |
725f747ffc1ab3ed9650937d2aae2be4
|
|
| BLAKE2b-256 |
d7707c407e637677c132d4785bc0813d4cc1c1ca035ab66c58e1ed9e96a198e9
|
File details
Details for the file easy_gravity-0.2.2-py3-none-any.whl.
File metadata
- Download URL: easy_gravity-0.2.2-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 |
f53cb0c8118cbd210a06125bb61153fa7bec6eab5554e07c2e21d152d54b2fce
|
|
| MD5 |
086f4c8707ad8e65cabd063e9bcda3d5
|
|
| BLAKE2b-256 |
b5f1c3defe50f366b84d07d5349370d62ae1352fd0e960a271d9144a65d84922
|