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!
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
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: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
ao
Posted at 2012-08-31 17:08:14
search
Reply to comment