Back in June/July 2008 I was around looking for a job as I was just finishing my degree, and I had an intreaging test given to me as part of a preparation to an interview in London (which I didn't goto in the end) but I thought I would share how to do it with the world in hope it may help someone else in the future. Albeit clunky, and not overly effective it will retrieve the most popular colours within a specified image, and then based on that I attemped to make an algorithm which then chose a colour relative to the colour code of the most popular colours used in the picture.
Here is the Code for index.php:
1 |
|
This is the function code which goes with this file:
1 |
|
I hope this helps some of you out there, and who knows it might even get you that job if its still going, hehe!
I have also attached a zip file for this snippet for peoples reference, good luck!
Bomblawter
Posted at 2012-01-17 21:35:04
I have been assigned to do a report for our school newspaper on this subject, and your post has been beneficial. Can you please add more reference to this topic, thanks.
buy backlinks
Firstrowstart
Posted at 2012-01-21 21:13:11
I am in the middle of working on a school report on this topic and your post has helped me with the information I needed to complete it. Thanks.
honda insurance quotes
Happprze
Posted at 2012-01-16 23:13:55
Part of my job requires me to stay on top of this subject. The article you have written has been beneficial in my research. Thanks a lot
Public Speaking
Sorrwman
Posted at 2012-01-15 21:12:29
I am currently working on an assignment and I have been exploring your blog for a few hours. Thank you for your post it proved helpful for me.
Buy Herbal Incense
TheTimenwes
Posted at 2012-01-12 18:51:33
This post has helped me to have another perspective. I am researching this topic for a paper I am writing. Your article provided me great insight of my topic.
Press Release Distribution
Wentplace
Posted at 2012-01-11 18:14:56
I enjoyed reading your article and found it to be informative and to the point. Thank you for not rambling on and on just to fill the page.
Lawyer Marketing
Elevenside00
Posted at 2012-01-04 19:50:46
This topic has always been one of my favorite subjects to read about. I have found your post to be very rousing and full of good information. I will check your other articles shortly.
[url=http://world-of-opinion.com/]world of opinion[/url]
Elevenside00
Posted at 2012-01-04 19:48:27
This topic has always fascinated me. Thank you for writing an article that has great content and is well written. Well I am inspired by your writing style.
world of opinion
Mike
Posted at 2012-04-27 06:27:33
online logo design
logo design canada
Reply to comment