Skip to content

Commit

Permalink
Fix build (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherphil authored Apr 29, 2024
1 parent feb8fe7 commit 45a6215
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/edges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ pub fn laplacian_edge_detector(image: &GrayImage) -> ImageBuffer<Luma<u8>, Vec<u

let otsu_threshold = contrast::otsu_level(&laplacian_img);

contrast::threshold(&laplacian_img, otsu_threshold)
contrast::threshold(
&laplacian_img,
otsu_threshold,
contrast::ThresholdType::Binary,
)
}

#[cfg(test)]
Expand Down

0 comments on commit 45a6215

Please sign in to comment.