Query by Similar Color
During Winter Quarter, we focused on analyzing images by color. After researching this, we found a PHP class (developed by Csonger Zalatnai) that extracts the most dominant colors within an image and outputs the results as hexadecimal value. We then analyzed all photos in our database for most dominant color. Now when someone uploads a photo, the image is immediately analyzed for dominant color and that value is inserted into the datbase.
Our homepage pulls up the hexadecimal values for the images displayed and then converts those values into rgb values. We then move the images to different places on the homepage based on their rgb values.
Brian Costelo assisted us with creating a color picker that draws upon the PHP class develoepd by Csonger Zalatnai. Using the color picker, we can pick up the 5 images that are the closest match to that color. The picker can be viewed here: http://209.160.72.15/bc/matchy.php. |