From 4bb8f417572972c02e496f3729f6daceaec17bf6 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 1 Jul 2017 10:28:51 +0500 Subject: [PATCH] Add comparator list in readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f2cc808..45d08ae 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,11 @@ croppedImage := colorcrop.CropWithComparator( colorcrop.CmpCIE76) // using CIE76 standart for defining color difference ``` +Available comparators are: +- `CmpRGBComponents` - simple RGB components difference: `abs(r1-r2)+abs(g1-g2)+abs(b1-b2)` (default); +- `CmpEuclidean` - [Euclidean difference](https://en.wikipedia.org/wiki/Color_difference#Euclidean); +- `CmpCIE76` - difference of two colors defined in [CIE76 standart](https://en.wikipedia.org/wiki/Color_difference#CIE76). + ## Examples See [here](https://github.com/nxshock/colorcrop/blob/master/example_test.go).