<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jaysen Marais &#187; image search</title>
	<atom:link href="http://www.jaysenmarais.com/blog/tag/image-search/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jaysenmarais.com/blog</link>
	<description>Making it happen, bit by bit</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:50:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hue City</title>
		<link>http://www.jaysenmarais.com/blog/20070617/hue-city</link>
		<comments>http://www.jaysenmarais.com/blog/20070617/hue-city#comments</comments>
		<pubDate>Sun, 17 Jun 2007 11:46:20 +0000</pubDate>
		<dc:creator>jaysen</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hue]]></category>
		<category><![CDATA[image search]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[quinton marais]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://jaysenmarais.com/blog/20070617/hue-city/</guid>
		<description><![CDATA[A project that I&#8217;ve been working on forever has, among other features, a &#8216;search images by colour&#8216; feature. This is one that I&#8217;d been excited about for a long time and had tackled on several occasions but it had never quite come together. Until now. My previous attempts had all involved reducing each image to [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://www.quintonmarai.com">project</a> that I&#8217;ve been working on forever has, among other features, a &#8216;<a href="http://www.quintonmarais.com/search/colour.aspx">search images by colour</a>&#8216; feature. This is one that I&#8217;d been excited about for a long time and had tackled on several occasions but it had never quite come together. Until now.</p>
<p>My previous attempts had all involved reducing each image to a weighted list of &#8216;popular&#8217; colours. The search UI let the user pick from the <a href="http://en.wikipedia.org/wiki/Web_colors">web (216) palette</a>, with only images possessing a healthy portion of that colour being returned in the results. At one time I even allowed users to select a secondary colour along with <a href="http://en.wikipedia.org/wiki/RGB_color_space">RGB</a>/<a href="http://en.wikipedia.org/wiki/HSV_color_space">HSV</a>/<a href="http://en.wikipedia.org/wiki/CMYK_color_model">CMYK</a> (synchronised) sliders, but that was as complicated to use as it sounds, so I let it go. The problem was that this &#8216;popular colours&#8217; approach ignored the fundamental truth that people just don&#8217;t search for drab browns, faded yellowy-greens or most of the other colours which make up these palettes. From a colour-space perspective, when people say &#8216;colour&#8217;, they mean &#8216;<a href="http://en.wikipedia.org/wiki/Hue">hue</a>&#8216;. </p>
<p>So earlier this week (on the train) I set about re-writing the whole colour search feature to actually be a hue-based search feature (the word colour remains because &#8216;hue search&#8217; just doesn&#8217;t light up anyone&#8217;s eyes, not even mine). After a few train trips and most of Saturday I had the hue-parsing algorithm implemented and had written a console app which re-indexed all the existing images in the library. I also updated the relevant portions of the batch uploading tool and the admin web site to be hue-aware. Things were going well, but I had only a vague idea of how the actual search UI would work.</p>
<p>Initially I thought another slider would be the best approach,&nbsp;but decided it was overkill after looking around at&nbsp;existing html slider implementations (<a href="http://developer.yahoo.com/yui/slider/">yahoo UI library as a nice slider</a>, but I didn&#8217;t want the added dependency for what is essentially a minor feature). Eventually I&nbsp;set about&nbsp;rolling my own control for the job.&nbsp;I think the&nbsp;hue picker widget and the <a href="http://www.quintonmarais.com/search/colour.aspx">hue search feature</a> as a whole turned out really well, and will continue to improve as the number of images in the library grows.</p>
<p>Now I&#8217;m&nbsp;thinking of packaging&nbsp;up the &nbsp;Hue Picker for free distribution. You know, just for kicks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaysenmarais.com/blog/20070617/hue-city/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

