<?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>Jeff Mather&#039;s Dispatches &#187; Color and Vision</title>
	<atom:link href="http://jeffmatherphotography.com/dispatches/category/color-and-vision/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffmatherphotography.com/dispatches</link>
	<description>The Post-9-to-5 Life of an International Playboy</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:01:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Visual Acuity and Color Confusion</title>
		<link>http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 19:41:52 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[MATLAB]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/?p=2305</guid>
		<description><![CDATA[I&#8217;ve been working on a project at work that involves visual acuity. We&#8217;re basically asking the question, &#8220;How easy is it to notice the difference between two parts of an image with the assistance of color?&#8221; As part of the &#8230; <a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a project at work that involves visual acuity.  We&#8217;re basically asking the question, &#8220;How easy is it to notice the difference between two parts of an image with the assistance of color?&#8221;  As part of the process, we take two grayscale images and make a false-color composite from them.  Similar regions of the image are gray (which includes black and white), while the differences show up as one hue or another.</p>
<p>There is an almost infinite number of colors we could use for the false coloring by spinning the color wheel, but it&#8217;s easiest to pick a primary color (red, green, or blue) and use its complementary color for the opposite.  Some colors are harder to distinguish against bright backgrounds; think about picking out a bright yellow object against a bright white background.  While other colors are harder to pick out against dark backgrounds; blue on black, for example.  Is there an optimal choice that&#8217;s also inexpensive to compute?</p>
<p>Let&#8217;s find out.  Here&#8217;s what happens when you perform the &#8220;What&#8217;s different?&#8221; test using the three obvious choices of red/cyan, green/magenta, and blue/yellow:</p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/diff1/" rel="attachment wp-att-2306"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/diff1-776x500.png" alt="" title="Visual discrimination, normal vision" width="640" height="412" class="alignnone size-large wp-image-2306" /></a></p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/diff2/" rel="attachment wp-att-2307"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/diff2-779x500.png" alt="" title="Visual discrimination, normal vision" width="640" height="410" class="alignnone size-large wp-image-2307" /></a></p>
<p><i>(Click any image to see it larger and/or full-size.)</i></p>
<p>The blue/yellow version is not very good because it suffers from the problems listed above, while the green/magenta and red/cyan false colorings seem to produce fairly equivalent results.  What to do?  The ever-practical <a href="http://blogs.mathworks.com/loren/">Loren</a> suggested that we see what happens if we ask people with <strike>color-blindness</strike> color confusion.  Turns out, we know a couple of such folks, but they were in meetings.  What to do?</p>
<p>Oh, that&#8217;s right!! A while back, I wrote some <a href="http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/">MATLAB code that simulates the two most common forms of anomalous color vision</a>.  Let&#8217;s run that and see what happens.  (The speckling in the images is an artifact of the conversion and doesn&#8217;t represent how they actually look to people with protanopia or deuteranopia.)</p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/deut_1/" rel="attachment wp-att-2310"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/deut_1-776x500.png" alt="" title="Visual Discrimination, Deuteranopia Vision" width="640" height="412" class="alignnone size-large wp-image-2310" /></a></p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/deut_2/" rel="attachment wp-att-2311"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/deut_2-779x500.png" alt="" title="Visual Discrimination, Deuteranopia Vision" width="640" height="410" class="alignnone size-large wp-image-2311" /></a></p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/prot_1/" rel="attachment wp-att-2308"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/prot_1-776x500.png" alt="" title="Visual Discrimination, Protanopia Vision" width="640" height="412" class="alignnone size-large wp-image-2308" /></a></p>
<p><a href="http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/prot_2/" rel="attachment wp-att-2309"><img src="http://jeffmatherphotography.com/dispatches_wp/wp-content/uploads/2011/06/prot_2-779x500.png" alt="" title="Visual Discrimination, Protanopia Vision" width="640" height="410" class="alignnone size-large wp-image-2309" /></a></p>
<p>The results are a no-brainer!  (Sorry about the pun.)  While the red/cyan and green/magenta images are very similar for the majority of us with normal color vision, the red/cyan images become very difficult to use for people with any kind of anomalous color vision.  Even though the green/magenta starts to look a lot like the blue/yellow row, which has its own issues of color discrimination, it makes a very good compromise.  Green/magenta it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2011/06/visual-acuity-and-color-confusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking in from the Golden State</title>
		<link>http://jeffmatherphotography.com/dispatches/2011/01/checking-in-from-the-golden-state/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2011/01/checking-in-from-the-golden-state/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 07:08:48 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[CGM]]></category>
		<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Reluctant Triathlete]]></category>
		<category><![CDATA[Running]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/?p=1666</guid>
		<description><![CDATA[It&#8217;s almost 11:00PM by way of 2:00AM. I should be more tired, but I&#8217;m not&#160;.&#160;.&#160;. or maybe I am. I can&#8217;t tell. As soon as I finish watching &#8220;The Kids Are Alright,&#8221; I&#8217;m going to bed. Hopefully, I won&#8217;t wake &#8230; <a href="http://jeffmatherphotography.com/dispatches/2011/01/checking-in-from-the-golden-state/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost 11:00PM by way of 2:00AM.  I should be more tired, but I&#8217;m not&nbsp;.&nbsp;.&nbsp;. or maybe I am.  I can&#8217;t tell.  As soon as I finish watching &#8220;The Kids Are Alright,&#8221; I&#8217;m going to bed.  Hopefully, I won&#8217;t wake up at 4:00AM PST again tomorrow morning.</p>
<p>I&#8217;m in California attending the IS&amp;T/SPIE Electronic Imaging symposium.  Today I took a short-course about &#8220;Perception, Cognition, and Next Generation Imaging.&#8221;  I feel fulfilled by the first two parts; but the last one was a bit fuzzy.  This evening, while watching Netflix, I figured out what conference presentations I plan to take in over the next few days.  GPUs and parallel computing, high dynamic-range imaging, image quality, and maybe even a session called &#8220;The Dark Side of Color.&#8221;</p>
<p>But that all starts tomorrow.</p>
<p>I&#8217;m only gonna say this once while I&#8217;m here in California, because if I were in New England right now I would hate to be reminded even more that it&#8217;s winter.   The weather is unbelievably beautiful here in San Francisco.  When I did my weekly long run this afternoon, I felt something that I hadn&#8217;t in a long time: the 60s.</p>
<p>Today&#8217;s run was wonderful.  The front desk staff at the hotel gave me a pocket-sized card with a couple of running routes that I could stitch together to get very close to the nine miles that were on today&#8217;s docket.  But I got a little confused leaving the hotel, so I decided to keep following the trail along the Bay until I got to the far end of Coyote Point Park or 45 minutes in, whichever came first; then I would turn around.</p>
<p>I was feeling fast and figured that running 85 minutes would definitely be enough to have put the distance in.  So imagine my surprise when I mapped the run later to learn that I had gone 10 miles, averaging a very brisk (for me) 8:30/mile.  It&#8217;s amazing what happens when there aren&#8217;t multiple mile-long hills on the course.  Today, for the first time, I&#8217;m starting to feel more confident that I might actually be able to attain the somewhat arbitrary stretch goal that I set for myself when I decided six weeks ago to train for the New Bedford Half Marathon.</p>
<p>(By the way, even though CGM still isn&#8217;t really very accurate when I&#8217;m exercising, I learned some things during my training last Friday that have improved the accuracy greatly the rest of the time.  I like it.  Here&#8217;s hoping it helps me get my A1c and my confidence where I want them soon.  Oh, and one more thing; I signed up to do a sprint triathlon in early May in Hopkinton.  G-d help me.  More about both of those topics and about yesterday&#8217;s gallery hopping excursion later.)</p>
<p>And I miss Lisa terribly.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2011/01/checking-in-from-the-golden-state/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thoughts from a Thursday Morning</title>
		<link>http://jeffmatherphotography.com/dispatches/2010/08/thoughts-from-a-thursday-morning/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2010/08/thoughts-from-a-thursday-morning/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 14:53:34 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Baseball]]></category>
		<category><![CDATA[Book Notes]]></category>
		<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Diabetes]]></category>
		<category><![CDATA[Health Care]]></category>
		<category><![CDATA[Life Lessons]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/?p=1024</guid>
		<description><![CDATA[In honor of the company meeting earlier this morning, here are some of the things I&#8217;ve learned and thoughts I&#8217;ve had this morning&#160;.&#160;.&#160;. bullet point style: I can&#8217;t decide whether Arcade Fire&#8217;s new album, &#8220;Suburbs,&#8221; is completely, utterly pretentious and &#8230; <a href="http://jeffmatherphotography.com/dispatches/2010/08/thoughts-from-a-thursday-morning/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In honor of the company meeting earlier this morning, here are some of the things I&#8217;ve learned and thoughts I&#8217;ve had this morning&nbsp;.&nbsp;.&nbsp;. bullet point style:</p>
<ul>
<li>I can&#8217;t decide whether Arcade Fire&#8217;s new album, &#8220;Suburbs,&#8221; is completely, utterly pretentious and lacking in fun, or if that&#8217;s me I&#8217;m thinking about.</li>
<li>The second week of August may be the second best commuting week of the year. It has felt like the week between Christmas and New Years.</li>
<li>The reception areas of Newton-Wellesley Hospital (NWH) are under construction, and the architects created a display of the materials they&#8217;re using.  I like that a lot.</li>
<li>Phlebotomists, who specialize in doing something inherently painful with a minimum amount of discomfort, aren&#8217;t paid well enough.  I&#8217;ve been poked many times, and the ones who do it well really are amazing.</li>
<li>The NWH lab dedicated to drawing blood is extremely quick.  It&#8217;s where I prefer to go.  It opens at 8:30.</li>
<li>At 7:00 the main hospital lab claimed a 30 minute wait, but it was really an hour-long wait for 60 seconds of actual medical procedures.</li>
<li>Some days I&#8217;m really eager to get to work and finish up what I was working on the day before.  Today was one of those days.</li>
<li>In early April, <i>Sports Illustrated</i> predicted the Chicago Cubs would finish second in the NL Central, with a record of 81-81.  To make that happen, the Cubs will have to go 33-15 for the rest of the season.  The Cubs also have an estimated payroll of $137M for the season, which is $100M more than the team one behind them, the Pittsburgh Pirates. (The <b>Pirates</b>!)</li>
<li>I should have brought a book with me to the lab.  I just finished reading about <a href="http://www.amazon.com/Platypus-Extraordinary-Curious-Creature-Baffled/dp/0801880521/" title="Amazon: Platypus. Ann Moyal">platypuses</a> and have started reading about <a href="http://www.amazon.com/Age-Wonder-Romantic-Generation-Discovered/dp/0375422226/" title="Amazon: The Age of Wonder">Romantic science</a>.</li>
<li>I was smarter during the company meeting.  Now I know a lot more about &#8220;<a href="http://www.color.org/AdobeBPC.pdf" title="International Color Consortium: White Paper 40 (PDF)">Black-point compensation: theory and application</a>&#8221; and ICC color profile <a href="http://www.color.org/ICC_white_paper_9_workflow.pdf" title="International Color Consortium: White Paper 9 (PDF)">rendering intents</a> than I did yesterday.</li>
</ul>
<p>And now it&#8217;s time to muck around with run-length encoding.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2010/08/thoughts-from-a-thursday-morning/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Free Advertising Issue</title>
		<link>http://jeffmatherphotography.com/dispatches/2009/06/the-free-advertising-issue/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2009/06/the-free-advertising-issue/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 18:55:03 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Cycling]]></category>
		<category><![CDATA[Fodder for Techno-weenies]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2009/06/the-free-advertising-issue/</guid>
		<description><![CDATA[It&#8217;s time for another hodge-podge posting. This time, I&#8217;ll just give random shout-outs. Image Engineering: Dietmar Wueller has a great company that makes test equipment, targets, and software. I&#8217;ve had the good fortune of working a booth in a trade &#8230; <a href="http://jeffmatherphotography.com/dispatches/2009/06/the-free-advertising-issue/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time for another hodge-podge posting.  This time, I&#8217;ll just give random shout-outs.</p>
<p><a href="http://www.image-engineering.de/">Image Engineering</a>: Dietmar Wueller has a great company that makes test equipment, targets, and software.  I&#8217;ve had the good fortune of working a booth in a trade show next to them (more than once).  I trust their expertise completely.</p>
<p><a href="http://wyofoto.com/">WyoFOTO, LLC</a>: My mother and step-father are photographers and have a little web site of their own.</p>
<p><a href="http://www.trekbikes.com/us/en/bikes/road/2_series/21/">Trek 2.1 Road Bike</a>: Every month brings a new event to distract me from posting here.  In June, it&#8217;s my new bike.</p>
<p><a href="http://twitter.com/jeffmather">Twitter</a>: With millions of users, Twitter doesn&#8217;t really need me to get the message out. I think it&#8217;s a nice way to follow a small number of people who post links to photography, design, and software engineering articles/blogs/etc. that <i>might</i> interest me.  Others use it differently &mdash; sometimes I do, too.</p>
<p><a href="http://www.flickr.com/photos/jeff_mather/">Flickr</a>: They don&#8217;t need my advertising either.</p>
<p><b>The Wire</b>: The final three episodes of &#8220;The Wire&#8221; should arrive in my mailbox today (via Netflix).  If you&#8217;ve ever been hooked on the show, you&#8217;ll know another reason why I&#8217;m not posting more.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2009/06/the-free-advertising-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electronic Imaging: 3D</title>
		<link>http://jeffmatherphotography.com/dispatches/2009/01/matlab-in-3d/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2009/01/matlab-in-3d/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 05:45:09 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2009/01/matlab-in-3d/</guid>
		<description><![CDATA[I am attending Electronic Imaging 2009 in San Jose. Well, today was my last day here. Tomorrow I return to snowy Massachusetts. (It&#8217;s currently about 60º here.) But I&#8217;ve had my fish taco fix for another year, and I&#8217;m excited &#8230; <a href="http://jeffmatherphotography.com/dispatches/2009/01/matlab-in-3d/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am attending Electronic Imaging 2009 in San Jose.  Well, today was my last day here. Tomorrow I return to snowy Massachusetts. (It&#8217;s currently about 60º here.) But I&#8217;ve had my fish taco fix for another year, and I&#8217;m excited to get back to Lisa and the kitty.</p>
<p>As usual, I learned something new and talked to a lot of people about imaging and MATLAB.  Last year, the new-to-me things concerned <a href="http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-2008-megapixels-matter/">image quality for mobile devices</a> and <a href="http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/">image forensics</a>. This year&#8217;s big surprises were 3-D imaging, which apparently is going mainstream. (According to <a href="http://www.3d.curtin.edu.au/">Andrew Woods</a>, the chair of the Stereoscopic Displays and Applications conference, there are already two million televisions in people&#8217;s homes which are capable of displaying 3D video.) Every year that I attend, I seem to get a different view of the conference; so I&#8217;m cautious to read too much into any given year. But somehow, 3D felt different this time.</p>
<p>The exhibitors behind us were demonstrating their more advanced 3D displays and video capture systems, and the person across from us was <a href="http://terryfic3d.com/">selling 3D notecards and prints</a>. So my coworker and I thought we&#8217;d get in on the action during the waning hours of the exhibit.  We decided to try our hand at making an anaglyph, one of the easier kinds of 3D images to make (along with stereograms, which are a bit lo-fi for MATLAB, after all).</p>
<p>The recipe calls for combining two images of the same scene from slightly different perspectives using a simple function that combines the red channel from the left image and the green and blue channels from the right image. And of course, you need the funny glasses.  First, the images that we made with my camera phone:</p>
<p><a href="/images/21-01-09_1216.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/21-01-09_1216.jpg&#038;w=460&#038;q=90" title="Left image" border="0" /></a><br clear="all" /><a href="/images/21-01-09_1216.jpg">Left image</a></p>
<p><a href="/images/21-01-09_1217.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/21-01-09_1217.jpg&#038;w=460&#038;q=90" title="Right image" border="0" /></a><br clear="all" /><a href="/images/21-01-09_1217.jpg">Right image</a></p>
<p>Using <a href="http://www.mathworks.com/matlabcentral/fileexchange/4977">some MATLAB code</a> that we found on MATLAB Central, you get the following image:</p>
<p><img src="/images/holga_anaglyph.jpg"><br clear="all" />The anaglyph</p>
<p>(Unfortunately, I can&#8217;t help you with the funny glasses. Go get yer own.)</p>
<p>I am told the results are &#8220;okay for a <a href="http://www.3dculture.com/occ/StereoAlignArticle.htm">cha-cha picture</a>.&#8221; I don&#8217;t have binocular vision, so what do I know?</p>
<p>Have fun.  (And don&#8217;t be like the guy who said that the 1.57% of the population with monocular vision aren&#8217;t really worth worrying about.)</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2009/01/matlab-in-3d/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Article on High Dynamic Range Imaging and MATLAB</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/09/article-on-high-dynamic-range-imaging-and-matlab/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/09/article-on-high-dynamic-range-imaging-and-matlab/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 19:29:09 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Fodder for Techno-weenies]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/09/article-on-high-dynamic-range-imaging-and-matlab/</guid>
		<description><![CDATA[Peter Webb, one of my coworkers, published an article entitled &#8220;Rendering High Dynamic Range Images on the Web&#8221; in the July 2008 issue of the MATLAB Digest. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Peter Webb, one of my coworkers, published an article entitled &#8220;<a href="http://www.mathworks.com/company/newsletters/digest/2008/july/hdri.html">Rendering High Dynamic Range Images on the Web</a>&#8221; in the July 2008 issue of the <a href="http://www.mathworks.com/company/newsletters/digest/2008/july/">MATLAB Digest</a>.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/09/article-on-high-dynamic-range-imaging-and-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scientific American article on digital fakery</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/06/scientific-american-article-on-digital-fakery/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/06/scientific-american-article-on-digital-fakery/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:24:58 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Fodder for Techno-weenies]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/06/scientific-american-article-on-digital-fakery/</guid>
		<description><![CDATA[Here&#8217;s a follow-up to my dispatch from January about Hany Farid&#8217;s presentation at Electronic Imaging on detecting digital manipulation of images. Dr. Farid has written an article on digital forensics in this month&#8217;s issue of Scientific American. (Thanks to Steve &#8230; <a href="http://jeffmatherphotography.com/dispatches/2008/06/scientific-american-article-on-digital-fakery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a follow-up to my dispatch from January about <a href="http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/">Hany Farid&#8217;s presentation at Electronic Imaging</a> on detecting digital manipulation of images.  Dr. Farid has written an <a href="http://www.sciam.com/article.cfm?id=5-ways-to-spot-a-fake&#038;sc=rss">article on digital forensics</a> in this month&#8217;s issue of <i>Scientific American</i>.</p>
<p>(Thanks to <a href="http://blogs.mathworks.com/steve/2008/05/30/digital-image-forensics/">Steve on Image Processing</a> for the link.)</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/06/scientific-american-article-on-digital-fakery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electronic Imaging 2008: Your eye and novel single photon detectors</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-your-eye-and-novel-single-photon-detectors/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-your-eye-and-novel-single-photon-detectors/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 23:30:03 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-your-eye-and-novel-single-photon-detectors/</guid>
		<description><![CDATA[I&#8217;ve been telling everybody about this particular paper presentation at Electronic Imaging, because I think the implications are pretty cool. It&#8217;s yet another presentation where electrical engineers and image processing folks are treating machine vision more like human vision than &#8230; <a href="http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-your-eye-and-novel-single-photon-detectors/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been telling everybody about this particular paper presentation at Electronic Imaging, because I think the implications are pretty cool. It&#8217;s yet another presentation where electrical engineers and image processing folks are treating machine vision more like human vision than they have tended to do in the past. This phenomena isn&#8217;t exactly new &mdash; for example, <a href="http://en.wikipedia.org/wiki/Retinex" title="Wikipedia: Color Constancy">retinex</a> goes back over 35 years &mdash; but it&#8217;s a refreshing to see that we can learn from neuroscience at the same time that we are shaped by computers. Anyway, that&#8217;s enough Arthur C. Clarke for now.</p>
<p>Before I give you some scanty details about <a href="http://www.ece.northwestern.edu/~hmohseni/">Hooman Mohseni</a>&#8216;s work into single-photon detectors, I&#8217;ll do what he did in his presentation and discuss rod cells, the eye&#8217;s own single-photon detectors.</p>
<p><img src="/images/rod_cell.png" alt="A photon strikes a rod cell, interacting with rhodopsin in the cell membrane causing it to close the flow of ions into the cell causing a charge to build up, which is transmitted as an impulse to the rest of the visual system." title="A photon strikes a rod cell, interacting with rhodopsin in the cell membrane causing it to close the flow of ions into the cell causing a charge to build up, which is transmitted as an impulse to the rest of the visual system." /><br clear="all" /></p>
<p>The rod cells in your eye are almost perfect single-photon detectors. When a photon of light in the visible range strikes a rod cell, it causes a chemical reaction with rhodopsin, a photo pigment. The rhodopsin molecule changes shape, closing an aperture in the rod cell wall. This partially interrupts the flow of charged sodium ions into the rod cell, and an electrical charge builds up. The charge causes an impulse that is transmitted to the rest of the visual system, possibly causing the sensation of seeing light. There are several layers of rhodopsin in the cell, allowing a greater impulse when more photons strike it. (You can read <a href="http://www.accessexcellence.org/AE/AEC/CC/vision_background.html">more details about rhodopsin and its paramour retinal</a> if you want.)</p>
<p>Each rod cell can detect a single photon event, and rods are photon number resolving, meaning that the visual system can use the impulse to distinguish whether one photon, two photons or twenty photons struck the rod cell. And the false count rate is very low, approximately one per 100 seconds. And all of this happens at low electricity levels. Pretty cool, huh?</p>
<p>Compare that to imaging sensors like CCDs, where at very low illumination levels noise overwhelms the actual signal.  Even very accurate detectors that can detect single photons reliably (such as photo-multiplier tubes) require large amounts of voltage and usually can&#8217;t resolve the difference between one or two photons. Signal-to-noise ratios have been pretty bad so far, too.</p>
<p>Prof. Mohseni&#8217;s group at Northwestern has been using nanotechnology fabrication techniques to create a &#8220;focalized carrier augmented sensor (FOCUS)&#8221; which can transform a single photon event into an output of about 1,000 electrons, at very low voltages. Essentially they have produced something like a rod cell.</p>
<p>Their detector works really well, but nanofabrication is hard and slow. They can&#8217;t even image the small, tube-like sensors because they are too delicate; for example, atomic force microscopy &mdash; a very gentle technique &mdash; destroys the tubes. Nevertheless, this may be the future of things like night vision, positron-emission tomography, and so on.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-your-eye-and-novel-single-photon-detectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electronic Imaging 2008: Color Universal Design (and a MATLAB-based simulator)</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 22:37:29 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[MATLAB]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/</guid>
		<description><![CDATA[Note: Here&#8217;s another dispatches about what happened at the Electronic Imaging symposium even though I&#8217;m back from San Jose. They will continue until I run out of useful things to write or something more interesting happens in my life. Yasuyo &#8230; <a href="http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><i>Note: Here&#8217;s another dispatches about what happened at the Electronic Imaging symposium even though I&#8217;m back from San Jose. They will continue until I run out of useful things to write or something more interesting happens in my life.</i></p>
<p>Yasuyo Ichihara of Kogakuin University presented some research that she and her colleagues performed on what many of us call &#8220;color blindness&#8221; or &#8220;color deficiency.&#8221; She would prefer that we say these differently sighted folks have &#8220;color confusion,&#8221; which I&#8217;ll probably try since it&#8217;s slightly more evocative than &#8220;color deficiency.&#8221; And from a PC point of view, it may  not be nice to stagmatize roughly 5% of the population as deficient, etc.</p>
<p>Anyway, they presented research of how their lab applied color universal design to remake the map and timetables of the Tokyo subway system to be friendlier for people with both protanopia and deuteranopia. It turns out that the color confusion can be quite simply modeled by placing two iso-chromaticy lines on the standard x-y chromaticity diagram.  Along those lines, all colors appear to be the same hue; so it&#8217;s not too hard to pick colors that are maximally contrasting by avoiding the iso-lines. They picked four colors, which they claim are suitable for many print applications: black, orange-red, bluish-green, and a more pure blue.</p>
<p>Color universal design doesn&#8217;t stop at picking the right colors. Adding non-color information &mdash; such as letters, underlining, framing, or other symbols &mdash; proved to be very useful aids to comprehension, too.</p>
<p></p>
<p>All of this reminded me that awhile back I implemented a color deficiency simulator in MATLAB based on work by <a href="http://www.tsi.enst.fr/~brettel/colourblindness.html">Hans Brettel</a>. I&#8217;m making these functions available here in the hopes that they&#8217;re useful and that you actually use them when designing something colorful. Simply download the <a href="http://www.jeffmatherphotography.com/misc/protanopia.m">protanopia</a> and <a href="http://www.jeffmatherphotography.com/misc/deuteranopia.m">deuteranopia</a> simulator M-files and the <a href="http://www.jeffmatherphotography.com/misc/color_anomalies.mat">associated data file</a>. (You will need the Image Processing Toolbox, since these functions use <tt>rgb2ind</tt>.)</p>
<p>Let&#8217;s see what the peppers image I created some years ago looks like to people with color confusion:</p>
<pre>
<div class="codesnip-container" >
<div class="matlab codesnip" style="font-family:monospace;">rgb = <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/imread.html"><span class="kw2">imread</span></a><span class="br0">&#40;</span><span class="co2">'peppers.png'</span><span class="br0">&#41;</span>;
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure.html"><span class="kw2">figure</span></a>; imshow<span class="br0">&#40;</span>rgb<span class="br0">&#41;</span>; <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/title.html"><span class="kw2">title</span></a><span class="br0">&#40;</span><span class="co2">'Normal color vision'</span><span class="br0">&#41;</span>
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure.html"><span class="kw2">figure</span></a>; imshow<span class="br0">&#40;</span>deuteranopia<span class="br0">&#40;</span>rgb<span class="br0">&#41;</span><span class="br0">&#41;</span>; <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/title.html"><span class="kw2">title</span></a><span class="br0">&#40;</span><span class="co2">'Deuteranopia'</span><span class="br0">&#41;</span>
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure.html"><span class="kw2">figure</span></a>; imshow<span class="br0">&#40;</span>protanopia<span class="br0">&#40;</span>rgb<span class="br0">&#41;</span><span class="br0">&#41;</span>; <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/title.html"><span class="kw2">title</span></a><span class="br0">&#40;</span><span class="co2">'Protanopia'</span><span class="br0">&#41;</span></div>
</div>
</pre>
<p><a href="/images/peppers_normal.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/peppers_normal.jpg&#038;w=480&#038;q=90" title="Peppers image for people with normal trichromatic vision" border="0" /></a></p>
<p><a href="/images/peppers_prot.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/peppers_prot.jpg&#038;w=480&#038;q=90" title="Peppers image for people with protanopia color confusion" border="0" /></a></p>
<p><a href="/images/peppers_deut.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/peppers_deut.jpg&#038;w=480&#038;q=90" title="Peppers image for people with deuteranopia color confusion" border="0" /></a><br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/02/electronic-imaging-2008-color-universal-design-and-a-matlab-based-simulator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Electronic Imaging 2008: Digital Image Forensics</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 05:21:02 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Fodder for Techno-weenies]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/</guid>
		<description><![CDATA[Now that Steve has linked to me again, I guess it would be timely to post something from the Electronic Imaging symposium. Let&#8217;s start with something fun: digital image forensics. I find this topic really interesting for a few reasons. &#8230; <a href="http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now that <a href="http://blogs.mathworks.com/steve/2008/01/29/jpeg-whats-in-a-name/">Steve has linked to me again</a>, I guess it would be timely to post something from the Electronic Imaging symposium. Let&#8217;s start with something fun: digital image forensics.</p>
<p>I find this topic really interesting for a few reasons. (1) I&#8217;m a photographer who believes that all images contain a seed of untruth but feel ambivalent about what that means in our information age where images form the basis of what most people &#8220;know.&#8221; (2) Practical applications of image processing are always interesting. (3) It&#8217;s fresh in my mind, since I recently helped someone show that an Ethiopian passport was a fraud. (Image processing played only a small part &mdash; the content and <a href="http://www.linotype.com/1283/ocrb-family.html">font</a> on the <a href="http://www.highprogrammer.com/alan/numbers/mrp.html">machine readable section</a> didn&#8217;t match the international standard &mdash; but showing that parts were pasted in digitally helped create a preponderance of evidence.)</p>
<p><a href="http://www.cs.dartmouth.edu/farid/research/tampering.html">Hany Farid</a> of Dartmouth gave the first plenary session: &#8220;Digital Forensics&#8221;. Prof. Farid started by quoting a science journal editor&#8217;s staggering statistic: 20-30% of submitted journal entries need images resubmitted because of &#8220;inappropriate image manipulation.&#8221; His lab&#8217;s work aims to out these digital forgeries. Here are some techniques that you can use to identify likely forgeries.</p>
<p><b>JPEG quality tables (Q-Tables)</b> &mdash; These 8-by-8 tables of quantization values are stored in each JPEG file and used to decompress the images. Something I did not know was that most camera vendors use unique Q-tables and that they frequently change them when they introduce new camera models. Photoshop, on the other hand, has not changed their Q-tables since version 1. So you can extract these values from a file and see if it has been saved by Photoshop, which might hint at manipulation.</p>
<p><b>Cloning</b> &mdash; Partition the image into blocks, do principal component analysis, lexigraphically sort the results, do region growing, and look for similar regions.</p>
<p><b>Resampling (shrinking, growing, rotating, etc.)</b> &mdash; Use statistical correlation to look for simple interpolation between values.</p>
<p><b>Included objects</b> frequently have a different color filter array (CFA) pattern than the rest of the image, possibly because of resizing or different in-camera decoding. Also you can create a vector field of the chromatic aberration color fringing throughout the image; inserted parts will likely have vectors pointing the wrong direction.</p>
<p>In addition, the human visual system (HVS) doesn&#8217;t easily notice subtle differences in lighting or shadows in parts of a composite image, but Farid laid out some techniques for estimating lighting direction. One impressive method involves determining the direction of the light (in 3-space, mind you) by looking at the specular highlights in the eye. (See <a href="http://www.cs.dartmouth.edu/farid/publications/mkjthesis07.pdf">Micah Kimo Johnson&#8217;s thesis</a> for full details.)</p>
<p>During the Q&amp;A, one wag asked the question on many of our minds. Are there tools or techniques available to mask all of these forgery detection techniques? Apparently yes, since Prof. Farid consults with Adobe on issues of making more realistic photo manipulations.</p>
<p><b>Update &mdash; 10 August 2008</b>: You can see a <a href="http://www.pbs.org/wgbh/nova/sciencenow/0301/03.html">thirteen minute video with Dr. Farid</a> at PBS&#8217;s <i>Nova</i> web site.  (Thanks to <a href="http://blogs.adobe.com/crawlspace/2008/06/real_or_fake.html">Jeff Tranberry</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/01/electronic-imaging-digital-image-forensics/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

