Electronic device and method of extracting color in electronic device
AssigneeSamsung Electronics Co., Ltd.
InventorsSeung-Myung Lee, Dae-Hee Kim, Seung-Hwan Jeong, Dae-Won Kim, Jee-Yeun Wang
Life of this patent
Estimating the term…
Abstract
An electronic device and a method of extracting a color in the electronic device are provided. The electronic device includes a display unit configured to display an image and a controller configured to extract at least one color value from the image, and to extract a color value satisfying a range of color deviation from the extracted color values.
Claims15
A method of extracting a color in an electronic device, the method comprising:
- extracting a plurality of colors, each of which is represented by an RGB triplet having an R value, a G value, and a B value, from an icon image;
- selecting a predetermined number of colors from the extracted a plurality of colors based on a portion occupied by each of the plurality of colors within the icon image;
- determining at least one color, among the predetermined number of colors, having an R value, a G value, and a B value satisfying a range of color deviation, wherein the color deviation comprises a difference between a maximum of the R, G and B values and a minimum of the R, G and B values determined in advance;
- extracting a color from the at least one color based on a priority;
- determining the extracted color as a representative color of the icon image;
- and
- displaying the representative color as a background color of a screen of an application related to the icon image.
An electronic device comprising:
- a display unit configured to display an icon image;
- and
- at least one processor configured to:
- extract a plurality of colors, each of which is represented by an RGB triplet having an R value, a G value, and a B value, from the icon image,
- select a predetermined number of colors from the extracted plurality of colors based on a portion occupied by each of the plurality of colors within the icon image,
- determine at least one color, from among the predetermined number of colors, having an R value, a G value, and a B value satisfying a range of color deviation, wherein the color deviation comprises a difference between a maximum of the R, G and B values and a minimum of the R, G and B values determined in advance,
- extract a color from the at least one color based on a priority,
- determine the extracted color as a representative color of the icon image, and
- display the representative color as a background color of a screen of an application related to the icon image.
A non-transitory computer-readable storage medium with an executable computer program stored thereon, wherein the computer program instructs at least one processor to perform operations for:
- extracting a plurality of colors, each of which is represented by an RGB triplet having an R value, a G value, and a B value, from an icon image;
- selecting a predetermined number of colors from the extracted a plurality of colors based on a portion occupied by each of the plurality of colors within the icon image;
- determining at least one color, among the predetermined number of colors, having an R value, a G value, and a B value satisfying a range of color deviation, wherein the color deviation comprises a difference between a maximum of the R, G and B values and a minimum of the R, G and B values determined in advance;
- extracting a color from the at least one color based on a priority;
- determining the extracted color as a representative color of the icon image;
- and
- displaying the representative color as a background color of a screen of an application related to the icon image.
Dependencies are inferred from the claim text.