Skip to content

Commit 03e1bfb

Browse files
authored
update (#13)
1 parent 5970f20 commit 03e1bfb

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "camera-intrinsic-calibration"
3-
version = "0.5.5"
3+
version = "0.5.6"
44
edition = "2021"
55
authors = ["Powei Lin <poweilin1994@gmail.com>"]
66
readme = "README.md"
@@ -23,25 +23,25 @@ exclude = [
2323
[dependencies]
2424
aprilgrid = "0.5.3"
2525
camera-intrinsic-model = "0.3.1"
26-
clap = { version = "4.5.24", features = ["derive"] }
26+
clap = { version = "4.5.31", features = ["derive"] }
2727
colorous = "1.0.15"
2828
env_logger = "0.11.6"
2929
faer = "0.20.2"
3030
glam = "0.29.2"
3131
glob = "0.3.2"
3232
image = "0.25.5"
33-
indicatif = { version = "0.17.9", features = ["rayon"] }
34-
log = "0.4.22"
33+
indicatif = { version = "0.17.11", features = ["rayon"] }
34+
log = "0.4.26"
3535
nalgebra = "0.33.2"
36-
rand = "0.8.5"
37-
rand_chacha = "0.3.1"
36+
rand = "0.9.0"
37+
rand_chacha = "0.9.0"
3838
rayon = "1.10.0"
3939
rerun = "0.17.0"
40-
serde = { version = "1.0.217", features = ["derive"] }
41-
serde_json = "1.0.134"
40+
serde = { version = "1.0.218", features = ["derive"] }
41+
serde_json = "1.0.139"
4242
sqpnp_simple = "0.1.5"
4343
time = "0.3.37"
44-
tiny-solver = "0.14.1"
44+
tiny-solver = "0.14.2"
4545

4646
[[bin]]
4747
name = "ccrs"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ rerun results/20YYMMDD_HH_MM_SS/logging.rrd
6060
├── any_file_name.png
6161
└── any_file_name.png
6262
```
63+
Images can be either `.png` or `.jpg`, but `.png` is preferred if possible. PNG is lossless compression, while JPG is not.
6364
### Camera models
6465
* Extended Unified (EUCM)
6566
* Extended Unified with Tangential (EUCMT)

src/optimization/homography.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub fn radial_distortion_homography(
210210
})
211211
.collect();
212212
let ransac_times = 1000;
213-
let mut rng = rand::thread_rng();
213+
let mut rng = rand::rng();
214214

215215
let mut best_lambda = 0.0;
216216
let mut best_homography_mat = na::Matrix3::zeros();

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pub fn find_best_two_frames_idx(
170170
}
171171
}
172172
if random_pick {
173-
let mut rng = rand::thread_rng();
173+
let mut rng = rand::rng();
174174
max_detection_idxs.shuffle(&mut rng);
175175
return (max_detection_idxs[0], max_detection_idxs[1]);
176176
}

src/visualization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn log_image_as_compressed(
2828

2929
pub fn id_to_color(id: usize) -> (u8, u8, u8, u8) {
3030
let mut rng = ChaCha8Rng::seed_from_u64(id as u64);
31-
let color_num = rng.gen_range(0..2u32.pow(24));
31+
let color_num = rng.random_range(0..2u32.pow(24));
3232
(
3333
((color_num >> 16) % 256) as u8,
3434
((color_num >> 8) % 256) as u8,

0 commit comments

Comments
 (0)