Crates.io | cam-geom |
lib.rs | cam-geom |
version | 0.15.0 |
source | src |
created_at | 2020-02-27 22:48:06.957382 |
updated_at | 2024-06-24 05:29:59.164972 |
description | Geometric models of cameras for photogrammetry |
homepage | |
repository | https://github.com/strawlab/cam-geom |
max_upload_size | |
id | 213286 |
size | 136,788 |
📷 📐 Geometric models of cameras for photogrammetry
The crate implements geometric models of cameras which may be useful for photogrammetry.
The crate provides a couple camera models, the pinhole perspective
camera and the
orthographic
camera. Adding
another camera model entails implementing the
IntrinsicParameters
trait. See the
opencv_ros_camera
crate
for one example.
Also provided is the function
best_intersection_of_rays()
which
determines the best 3D point corresponding to the intersection of multiple
rays. Thus, this crate is also useful for multiple view geometry.
Characteristics:
serde
.
Enable with the serde-serialize
cargo feature.nalgebra
crate.IntrinsicParameters
trait. While the
camera models implemented in this crate are linear, there is no
requirement that implementations are linear. For example, the
opencv_ros_camera
crate
exhibits distortion.ExtrinsicParameters
based on the
nalgebra::Isometry3
type to handle the camera pose.std
) and no heap allocations. In other words, this can run on a
bare-metal microcontroller with no OS.To run the basic unit tests:
cargo test
To run all unit tests:
cargo test --features serde-serialize
no_std
Since the thumbv7em-none-eabihf
target does not have std
available, we
can build for it to check that our crate does not inadvertently pull in
std. The unit tests require std, so cannot be run on a no_std
platform.
The following will fail if a std dependency is present:
# install target with: "rustup target add thumbv7em-none-eabihf"
cargo build --no-default-features --target thumbv7em-none-eabihf
Anyone who interacts with this software in any space, including but not limited to this GitHub repository, must follow our code of conduct.
Licensed under either of these: