Skip to content

Commit 9ad0367

Browse files
committed
update rust example to use Menon 2007, bump libdebayer to v0.3.0 and libdebayer-sys to v0.2.0
1 parent 2ada1dc commit 9ad0367

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: rust/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: rust/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libdebayer"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "MPL-2.0"
66
description = "debayer images with CUDA"
@@ -9,7 +9,7 @@ repository = "https://github.com/saronic-technologies/libdebayer/tree/main/rust"
99
readme = "../README.md"
1010

1111
[dependencies]
12-
libdebayer-sys = { version = "0.1.2", path = "libdebayer-sys" }
12+
libdebayer-sys = { version = "0.2.0", path = "libdebayer-sys" }
1313
opencv = { version = "0.92.3", features = ["clang-runtime"] }
1414
thiserror = "1.0.63"
1515

Diff for: rust/examples/test_benchmark.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn main() -> Result<(), anyhow::Error> {
181181
let bayer_image = convert_to_rggb(&img)?;
182182

183183
let mut debayer_input_image = DebayerInputImage::try_from(&bayer_image)?;
184-
let debayer_output_image = debayer_input_image.debayer(DebayerAlgorithm::Malvar2004Rggb2Bgr)?;
184+
let debayer_output_image = debayer_input_image.debayer(DebayerAlgorithm::Menon2007Rggb2Bgr)?;
185185

186186
let debayer_output_mat = Mat::try_from(debayer_output_image)?;
187187

Diff for: rust/libdebayer-sys/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: rust/libdebayer-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libdebayer-sys"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
edition = "2021"
55
license = "MPL-2.0"
66
description = "unsafe sys crate to the libdebayer C library"

0 commit comments

Comments
 (0)