Skip to content

Commit

Permalink
Cargo update colcon
Browse files Browse the repository at this point in the history
Yes, I'm using Linch to test new `colcon` commits
  • Loading branch information
Beinsezii committed Jun 28, 2024
1 parent 4c74bb8 commit feaa728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,8 @@ fn monochromatize(mut reference: [f32; 3], target: &mut [[f32; 4]], target_space
convert_space(Space::LRGB, Space::JZCZHZ, &mut reference);
convert_space_chunked(target_space, Space::JZCZHZ, target);

let lmax = Space::JZCZHZ.srgb_quant100()[0];
let cmax = Space::JZCZHZ.srgb_quant100()[1];

let lmin = Space::JZCZHZ.srgb_quant0()[0];
let cmin = Space::JZCZHZ.srgb_quant0()[1];
let [lmax, cmax, _] = Space::JZCZHZ.srgb_quants()[100];
let [lmin, cmin, _] = Space::JZCZHZ.srgb_quants()[0];

target.iter_mut().for_each(|chunk| {
let l = (chunk[0] - lmin) / lmax + lmin / lmax;
Expand Down

0 comments on commit feaa728

Please sign in to comment.