Skip to content

Commit

Permalink
Added scaling in XYZ
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 15, 2024
1 parent ae035c0 commit da3129a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ let resized = scaler.resize_rgba(
);
```

#### Example in CIE XYZ colorspace
```rust
let mut scaler = XYZScale::new(ResamplingFunction::Hermite);
scaler.set_threading_policy(ThreadingPolicy::Single);
let store =
ImageStore::<u8, 4>::from_slice(&mut bytes, width, height);
let resized = scaler.resize_rgba(
ImageSize::new(new_width, new_height),
store,
true
);
```

#### Example in Sigmoidal colorspace
```rust
let mut scaler = SigmoidalScaler::new(ResamplingFunction::Hermite);
Expand Down

0 comments on commit da3129a

Please sign in to comment.