mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Comparator rework and fixes
This commit is contained in:
parent
ab1c13e694
commit
eff44ff1cc
5 changed files with 117 additions and 16 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
// Crop returns cropped image with default comparator.
|
||||
func Crop(img image.Image, color color.Color, thresold float64) image.Image {
|
||||
return CropWithComparator(img, color, thresold, CmpRGBComponentsDiff)
|
||||
return CropWithComparator(img, color, thresold, CmpRGBComponents)
|
||||
}
|
||||
|
||||
// CropWithComparator returns cropped image with specified comparator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue