×

Image-based color palette generation

  • US 9,245,350 B1
  • Filed: 06/26/2014
  • Issued: 01/26/2016
  • Est. Priority Date: 06/26/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for generating a color palette, the computer-implemented method comprising:

  • under control of a hardware computing device configured with specific computer-executable instructions,obtaining a color image;

    obtaining a first color distance threshold and a second color distance threshold for use in generating a color palette, wherein the color palette is generated based, at least in part, on the color image;

    identifying a plurality of representative colors and a plurality of color weights based, at least in part, on the color image, wherein identifying the plurality of representative colors and plurality of color weights comprises;

    defining a base color;

    selecting a color from a current color distribution corresponding to the color image, wherein the selected color has a greatest color distance, among all colors in the current color distribution, from the base color;

    identifying a first subset of colors in the current color distribution that have a color distance within the first color distance threshold from the selected color;

    determining a representative color of the plurality of representative colors to be a color representing the identified first subset of colors;

    associating a color weight to the determined representative color based, at least in part, on a collective weight measure corresponding to the first subset of colors;

    identifying a second subset of colors in the current color distribution that have a color distance within the second color distance threshold from the determined representative color;

    generating a new color distribution from the current color distribution by removing the second subset of colors from the current color distribution; and

    determining a new representative color of the plurality of representative colors and a color weight associated with the new representative color based, at least in part, on the new color distribution; and

    generating the color palette based, at least in part, on the identified plurality of representative colors and associated weight.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×