Skip to content

Commit

Permalink
Fix Color utils BGRA
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 10, 2024
1 parent c1b88ad commit 10e91bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace = { members = ["./src/app"] }

[package]
name = "histogram_equalization"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
description = "Histogram equalization"
readme = "README.md"
Expand All @@ -19,6 +19,6 @@ exclude = ["*.jpg", "assets/*"]
nightly_avx512 = ["yuvutils-rs/nightly_avx512"]

[dependencies]
colorutils-rs = "0.3.0"
colorutils-rs = "0.3.3"
num-traits = "0.2.19"
yuvutils-rs = "0.2.6"
6 changes: 3 additions & 3 deletions src/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use colorutils_rs::rgb_to_rgba;
use image::GenericImageView;
use image::io::Reader as ImageReader;

use histogram_equalization::{clahe_hsl_rgba, clahe_lab_rgb, clahe_lab_rgba, clahe_luv_rgba, ClaheGridSize, hist_equal_luv_rgb};
use histogram_equalization::{clahe_hsl_rgba, clahe_hsv_bgra, clahe_hsv_rgba, clahe_lab_rgb, clahe_lab_rgba, clahe_luv_bgra, clahe_luv_rgba, ClaheGridSize, hist_equal_luv_rgb};

fn main() {
let img = ImageReader::open("assets/asset_2.jpg")
let img = ImageReader::open("assets/IMG_5902.jpg")
.unwrap()
.decode()
.unwrap();
Expand All @@ -29,7 +29,7 @@ fn main() {
let stride = dimensions.0 as usize * channels;
let mut dst_bytes: Vec<u8> = vec![0; stride * dimensions.1 as usize];

clahe_luv_rgba(
clahe_hsv_bgra(
src_bytes,
stride as u32,
&mut dst_bytes,
Expand Down

0 comments on commit 10e91bd

Please sign in to comment.