DescriptionAdd ability to constrain dominant color selection to a HSL range.
This CL adds the ability to supply CalculateKMeanColorOfPNG with a lower
and upper HSL bound which will be used to select the dominant color.
This CL also adds CalculateKMeanColorOfPNG with only a PNG param as a
convenience method, using sane defaults and a utility function
IsWithinHSLRange for checking whether a given HSL is within the given
HSL range.
BUG=376613
TBR=benwells@chromium.org, estade@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274500
Patch Set 1 : #Patch Set 2 : make bounds inclusive, add saturation test #
Total comments: 18
Patch Set 3 : rebase onto 291653004 #Patch Set 4 : address comments #
Total comments: 4
Patch Set 5 : rebase, fix nits #
Total comments: 1
Patch Set 6 : rebase #
Total comments: 14
Patch Set 7 : rebase #Patch Set 8 : rebase onto 309773002 #Patch Set 9 : fix DCHECKS #
Total comments: 2
Patch Set 10 : fix nit #Patch Set 11 : remove C++11 features #
Messages
Total messages: 21 (0 generated)
|