mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-02 00:23:44 +05:00
Add comparator list in readme
This commit is contained in:
parent
4d01a57714
commit
4bb8f41757
1 changed files with 5 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue