Solved

top 3 colors

Posted on 2004-04-08
6
144 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
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 50 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now