Comparator rework and fixes

This commit is contained in:
nxshock 2017-06-25 16:52:58 +05:00
parent ab1c13e694
commit eff44ff1cc
5 changed files with 117 additions and 16 deletions

View file

@ -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.