Skip to content

Commit

Permalink
wasm: Fix compilation error
Browse files Browse the repository at this point in the history
Signed-off-by: caleb <[email protected]>
  • Loading branch information
etemesi254 committed Oct 14, 2023
1 parent 7e008e3 commit 2a79ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zune-image/src/filters/unsharpen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Unsharpen {
/// Create a new unsharp mask
///
/// # Arguments
/// - sigma: This value is passed to the gaussian filter,constult [it's documentation](crate::filters::gaussian_blur::GaussianBlur)
/// - sigma: This value is passed to the gaussian filter,consult [it's documentation](crate::filters::gaussian_blur::GaussianBlur)
/// on how to use it
///
/// - threshold: If the result of the blur and the initial image is greater than this, add the difference, otherwise
Expand Down
2 changes: 1 addition & 1 deletion zune-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl WasmImage {
}

/// Binarize an image
pub fn threshold(&mut self, threshold: u16) {
pub fn threshold(&mut self, threshold: f32) {
let ops = Threshold::new(threshold, ThresholdMethod::Binary);
self.execute_ops(&ops);
}
Expand Down

0 comments on commit 2a79ae2

Please sign in to comment.