Solved

top 3 colors

Posted on 2004-04-08
6
149 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 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.

726 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