Solved

top 3 colors

Posted on 2004-04-08
6
147 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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Flash movie or gif/animation? 3 912
How much do CG renderings cost? 6 117
Online photography 7 123
MS PAint how to type 14 150
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
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":…
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…

830 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