Skip to content

Commit

Permalink
fix dumb mistake
Browse files Browse the repository at this point in the history
Co-authored-by: theotherphil <[email protected]>
  • Loading branch information
Morgane55440 and theotherphil authored Apr 29, 2024
1 parent 10f6b72 commit 6046176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morphology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ pub fn grayscale_erode(image: &GrayImage, mask: &Mask) -> GrayImage {
.apply(image, x, y)
.map(|l| l.0[0])
.min()
.unwrap_or(u8::MAX)]) // default is u8::MIN because it's the neutral element of max
.unwrap_or(u8::MAX)]) // default is u8::MAX because it's the neutral element of min
});
result
}
Expand Down

0 comments on commit 6046176

Please sign in to comment.