?
Solved

top 3 colors

Posted on 2004-04-08
6
Medium Priority
?
150 Views
Last Modified: 2010-04-06
i need to find out the top 3 most frequently occuring colors of a jpeg image.
eg., if i have a picture of a man in a grey suit standing in a blue room, then the top 3 colors would be grey, blue & his skin color.

is this possible in javascript? if not, then please redirect me to an appropriate section of the site where i can ask this question
0
Comment
Question by:RTKVSNL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:searlas
ID: 10783274
No, this is not possible.  Try asking in the Graphics sub-section of Web Development
0
 
LVL 8

Accepted Solution

by:
shamstar earned 200 total points
ID: 10791436
This is not possible to do using javascript as it is not capable of getting raw pixel data from the image file.  If you needed a web solution, then your best bet would be to make a program to do it using Java.  The simplest way to do it would be to read each pixel and find out its color value, then have a counter for each.  I am not aware of any ready made Java applets you could use.
0
 
LVL 1

Expert Comment

by:thurston_l
ID: 10806932
whoa: i can tell you:
red, green, blue.
trust me, these are the most frequently used colors on screen.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question