<?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'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 9 to 5 Life of an International Playboy</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:48:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 show next to them (more than once).  I trust their expertise completely.
WyoFOTO, LLC: [...]]]></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 to get back to Lisa and the kitty.
As usual, I learned something new and [...]]]></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>0</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 on Image Processing for the link.)
]]></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 they have tended to do in the past. This phenomena isn&#8217;t exactly new &#8212; for [...]]]></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>&#8217;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 Ichihara of Kogakuin University presented some research that she and her colleagues performed on what many [...]]]></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>
rgb = imread('peppers.png');
figure; imshow(rgb); title('Normal color vision')
figure; imshow(deuteranopia(rgb)); title('Deuteranopia')
figure; imshow(protanopia(rgb)); title('Protanopia')
</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>1</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. (1) I&#8217;m a photographer who believes that all images contain a seed of untruth but feel [...]]]></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>
		<item>
		<title>Me Gusta Tacos y Burritos</title>
		<link>http://jeffmatherphotography.com/dispatches/2008/01/me-gusta-tacos-y-burritos/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2008/01/me-gusta-tacos-y-burritos/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 07:29:10 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>
		<category><![CDATA[OPP]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[This is who we are]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2008/01/me-gusta-tacos-y-burritos/</guid>
		<description><![CDATA[I&#8217;m full. Sated. Happy.
Fish tacos, my friends. That&#8217;s what has brought me to this wonderful place. Batter-fried fish on corn tortillas with salsa, finely cut cabbage, and some secret ingredient that Rubio&#8217;s puts in their &#8220;Pesky&#8221; tacos. With tortilla chips and refried beans on the side. Mmm.&#160;.&#160;.
It would be wrong to say that I came [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m full. Sated. Happy.</p>
<p>Fish tacos, my friends. That&#8217;s what has brought me to this wonderful place. Batter-fried fish on corn tortillas with salsa, finely cut cabbage, and some secret ingredient that <a href="http://www.rubios.com/">Rubio&#8217;s</a> puts in their &#8220;Pesky&#8221; tacos. With tortilla chips and refried beans on the side. Mmm.&nbsp;.&nbsp;.</p>
<p>It would be wrong to say that I came to California for fish tacos, but I was certainly looking forward to it for several months.</p>
<p>No, I&#8217;m in San Jose attending the 20th annual joint SPIE/IS&amp;T <a href="http://www.electronicimaging.org/">Electronic Imaging symposium</a>. Sunday I attended nine hours of short courses: &#8220;Color Processing and its Characterization for Digital Photography&#8221; and &#8220;Perceptual Metrics for Image Quality Evaluation.&#8221; Today &mdash; before the fish tacos &mdash; I sat in on a full day of paper presentations spread over the &#8220;Human Vision and Electronic Imaging XIII&#8221;, &#8220;Image Quality and System Performance V&#8221;, and &#8220;Digital Photography IV&#8221; conferences. (Tomorrow: &#8220;Color Imaging XIII: Processing, Hardcopy, and Applications&#8221; and &#8220;Rocky IV&#8221;.) I had hoped to see &#8220;Inferring illumination direction estimated from disparate sources in paintings: an investigation into Jan Vermeer&#8217;s &#8216;Girl with a Pearl Earring&#8217;&#8221;, but I was glad that I heard <a href="http://ivrgwww.epfl.ch/research/topics/hdr_cfa.html">Daniel Tamburrino</a>&#8217;s paper &#8220;Digital camera workflow for high-dynamic-range images using a model of retinal processing&#8221; instead.</p>
<p>(Supposing that I feel <strike>bored</strike> motivated, I will try to post some of my notes here in the coming days.)</p>
<p>I&#8217;ve only been here two and a half days, but I already feel like I&#8217;ve done so much. As I advocate in my book <i>How to Get Rich through Petty Cash</i>, I&#8217;m taking the opportunity to enjoy myself while on a business trip. If you travel around the country and only see the inside of your hotel room, you&#8217;re wasting your time on this earth. You&#8217;ve got to get out of the hotel, out of the high-priced bubble that surrounds any place where convention-goers congregate, and out of town if possible.</p>
<p>The trip from Boston on Saturday was one of the nicest cross-country flights I&#8217;ve ever had. It was my first time flying Jet Blue &mdash; I like the seats but don&#8217;t think I made the most of the seat-back amenities &mdash; and I was the only person in my row. Looking out my window I saw the white, snow-covered fields, ice-covered ponds and the sluggish rivers of New England give way to a deep shag of clouds over Minnesota and the corrugated origami of South Dakota and Wyoming. Rapid City, which I&#8217;ve never liked at ground-level, was a fine, delicate etched glass trophy on the edge of the blue Black Hills, the gateway to my old flame. Were those spiral holes in the ground and the furrows of overburden south of Gillette there last time? Surely those oil wells near Midwest still make the same unearthly bullfrog croaking I remember when we stopped the car to look at the bright smear of the milky way on a cold winter&#8217;s night more than a dozen years ago. And there&#8217;s the interstate leading to my city, my river, my mountain, my mother, my long-gone adolescent angst. I press my hand to the window. Clouds and snow fill in the depths of the Wind River Range, the last of the Rockies before the great folds in the earth when we enter Utah and then Terra Incognita and Terra Nullius in Nevada. Lake Tahoe, defiant, is not frozen but a deep black, unlike the muddy water covering fields in the Central Valley. And there&#8217;s glorious Point Reyes, unbelievably beautiful in the light of a western sun shining through broken clouds. Finally, the Golden Gate and its fabulous bridge.</p>
<p>After getting my rental car, I immediately headed to the SFMoMA, to see the <a href="http://www.sfmoma.org/exhibitions/exhib_detail.asp?id=266">Jeff Wall exhibit</a>, which closed Sunday while I was in my classes. I like many of Jeff Wall&#8217;s photographs, but I&#8217;m deeply ambivalent about his work in general. First he has a reputation as the most cerebral living photographer, but I often I feel that the nonstop art historical references &mdash; less that a quarter of which I doubt I caught &mdash; get in the way of making a photograph that&#8217;s pleasing to look at. Should we really let folks like <a href="http://images.google.com/images?q=wolfgang+tillmans">Wolfgang Tillmans</a>, <a href="http://images.google.com/images?q=juergen+teller">Jürgen Teller</a> (NSFW), and Wall &mdash; or me for that matter &mdash; revel in elevating every ordinary scene and still claim a fig leaf of art historical pretension? Perhaps if I were more of an insider, I would be less ambivalent; but such is the way with me and all modern art. <a href="http://www.sfmoma.org/exhibitions/exhib_detail.asp?id=300">An-My Lê&#8217;s photographs</a> from her <i>Small Wars</i> and <i>29 Palms</i> series were perfect. And the black-and-white and color work of the Silicon Valley from <a href="http://www.sfmoma.org/exhibitions/exhib_detail.asp?id=302">Gabriele Basilico</a> had me amazed and envious. Finally, I have to admit that despite liking monographs better than surveys, and themed exhibitions better than a hodge-podge of recent acquisitions, I liked <a href="http://www.sfmoma.org/exhibitions/exhib_detail.asp?id=12">Picturing Modernity</a>, a hodge-podge survey of photographs from the museums collection, very loosely grouped around a two word title and including several pictures that (too conveniently) would have fit in recent exhibits at the National Gallery of Art (like <a href="http://www.nga.gov/exhibitions/fotoinfo.shtm">this one</a> and <a href="http://www.nga.gov/exhibitions/snapshotinfo.shtm">that one</a>). Surely it was the luscious, large deadpan photos at the exhibit entrance that enticed me to give it a free pass.</p>
<p>Well that&#8217;s all that&#8217;s new from the other coast. I wish Lisa were here, and I miss having the cat lie upon my lap while I scratch under his chin. But these small prices must be paid by an international playboy with <strike>an expense account</strike> a conference to attend.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2008/01/me-gusta-tacos-y-burritos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quanta from Dr. Color&#8217;s Assistant: METACOW</title>
		<link>http://jeffmatherphotography.com/dispatches/2007/12/quanta-from-dr-colors-assistant-metacow/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2007/12/quanta-from-dr-colors-assistant-metacow/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 14:29:28 +0000</pubDate>
		<dc:creator>Jeff Mather</dc:creator>
				<category><![CDATA[Color and Vision]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2007/12/quanta-from-dr-colors-assistant-metacow/</guid>
		<description><![CDATA[Sorry for not posting anything color-related recently. I&#8217;m very busy with something important (but not very interesting) right now. The colorful language will return soon. Nevertheless, here&#8217;s a quick color-related post.
METACOW: &#8220;A Public-Domain, HighResolution, Fully-Digital, Noise-Free, Metameric, Extended-Dynamic-Range, Spectral Test Target for Imaging System Analysis and Simulation&#8221;. Wow, that&#8217;s hot!


Thanks to Steve for the tip.
]]></description>
			<content:encoded><![CDATA[<p>Sorry for not posting anything color-related recently. I&#8217;m very busy with something important (but not very interesting) right now. The colorful language will return soon. Nevertheless, here&#8217;s a quick color-related post.</p>
<p><a href="http://www.cis.rit.edu/mcsl/METACOW/">METACOW</a>: &#8220;A Public-Domain, HighResolution, Fully-Digital, Noise-Free, Metameric, Extended-Dynamic-Range, Spectral Test Target for Imaging System Analysis and Simulation&#8221;. Wow, that&#8217;s hot!</p>
<p><a href="http://www.jeffmatherphotography.com/images/borrowed/MetaCow_2Deg_A.jpg"><img src="http://www.jeffmatherphotography.com/phpThumb/phpThumb.php?src=/images/borrowed/MetaCow_2Deg_A.jpg&#038;w=450&#038;q=90" title="METACOW screen shot" border="0" /></a><br />
<br clear="all" /></p>
<p>Thanks to <a href="http://blogs.mathworks.com/steve/2007/12/13/metacow/" >Steve</a> for the tip.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2007/12/quanta-from-dr-colors-assistant-metacow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Film-like tone mapping</title>
		<link>http://jeffmatherphotography.com/dispatches/2007/10/film-like-tone-mapping/</link>
		<comments>http://jeffmatherphotography.com/dispatches/2007/10/film-like-tone-mapping/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 21:58:21 +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[MATLAB]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://jeffmatherphotography.com/dispatches/2007/10/film-like-tone-mapping/</guid>
		<description><![CDATA[Every once and a while someone will ask me why I still use film.  First of all, I have a film camera, and to buy a new one would be a significant chunk of cash.  But that&#8217;s not the main reason.  I like the look of film; I know how the various [...]]]></description>
			<content:encoded><![CDATA[<p>Every once and a while someone will ask me why I still use film.  First of all, I have a film camera, and to buy a new one would be a significant chunk of cash.  But that&#8217;s not the main reason.  I like the look of film; I know how the various emulsions work and know what I need to do to get the best image from them; and (above all) I like the fact that I have an artifact when I get my film back from the lab.</p>
<p>Digital does have a lot of advantages, though.  It provides instant feedback at the point of making the photograph.  It&#8217;s also hard to beat the speed and flexibility of a digital workflow.  And for 35mm-sized sensors, it&#8217;s hard to tell the difference from film.</p>
<p>This article mixes the look of film and the enormous possibilities of digital.  It also continues the trend of notes about high dynamic range images that I&#8217;ve been posting recently.</p>
<p>Color film is an analog tone reproduction operator.  It renders a vast range of illumination values to a particular color image.  That is, it maps the high dynamic range world to a lower dynamic range representation.  The major factors that influence this tone mapping &#8220;function&#8221; include the exposure settings (shutter time, aperture, and ISO speed), the <a href="http://micro.magnet.fsu.edu/primer/photomicrography/filmexposure.html">film response curves</a>, and development technique.  A film response curve for Fuji Velvia, the color film I use, appears below.  Notice how the curve is more-or-less flat in the highlights and shadows and that it has an S-shaped curve in between.</p>
<p><img src="/images/borrowed/curves-velvia.gif" alt="Velvia film response curve" /><br clear="all" /></p>
<p>If you take some liberties with that S-shaped part of response curve where the real detail in the image is, you might almost say that the curve has a flat part for the shadows, a flat part for the highlights, and a line that connects the two.</p>
<p>When I first started puttering around with high dynamic range images, I began by translating what I knew about how film renders a scene with a lot of tones:</p>
<ul>
<li>Film is sensitive across a particular exposure range.</li>
<li>Parts of the image with less than a certain amount of exposure are rendered as black.</li>
<li>Overexposed parts of image are rendered as white (technically clear).</li>
<li>You can&#8217;t change the film sensitivity (except with some processing tricks that we&#8217;ll ignore).</li>
<li>You <strong>can</strong> change the amount of light that is recorded during the exposure.</li>
</ul>
<p>It wasn&#8217;t hard for me to combine this information with the generalization about the film response &#8220;curve&#8221; to produce a very simple tone-renderer which simulates color slide film in MATLAB.  You can download the M-file from <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&#038;objectId=1093577">my page on MATLAB Central</a>, where you can find some other good stuff.  (I&#8217;ve also reprinted it below.)  I ran it on the HDR image of my office, varying the exposure from 0 EV to 12 EV in half-stop increments, and was very glad to see the same kind of results that I do with film.</p>
<p><a href="/images/simulateFilm_big.jpg"><img src="/images/simulateFilm.jpg" alt="My office rendered from HDR to LDR in 25 steps" /><br />(Click for larger image&#8230;)</a></p>
<p>But film is so twentieth-century. <img src='http://jeffmatherphotography.com/dispatches_wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   So I went on to <a href="http://jeffmatherphotography.com/dispatches/2007/09/ask-dr-colors-assistant-tone-mapping-in-matlab/">more interesting forms of tone mapping</a>.</p>
<hr />
<pre>
function rgbSimulated = simulateFilm(rgbRadiance, nStops)
%simulateFilm   Perform film-like tone mapping.
%   LDR = simulateFilm(HDR, middleEV) converts the floating-point high
%   dynamic range image HDR to a UINT8 low dynamic range image LDR using a
%   method that recreates the sensitivity of film.  The middleEV value sets
%   the middle exposure value (EV) for the rendering.  Larger EV numbers
%   will generate brighter images; smaller values of middleEV will result
%   in darker images.
%
%   The film sensitivity is set to 6 EV, which is comparable to many
%   late-model transparency (positive) films.
%
%   Example
%   -------
%
%   Render the same HDR image using different "exposure settings."
%   Essentially, simulate exposing the same scene from 0 to 12 EV in 1/2
%   stop steps.
%
%      % Read the HDR image and create a buffer for the rendered images.
%      hdr = hdrread('office.hdr');
%      s = size(hdr);
%      ldr = ones(s(1), s(2), 3, 25, 'uint8');
%
%      % Perform the tone mapping.
%      for p = 0.5:0.5:12.5
%          ldr(:,:,:,p*2) = simulateFilm(hdr, p);
%      end
%      figure; montage(ldr)

% Author: Jeff Mather
% Copyright 2006-2007 The MathWorks, Inc.

% Set the film sensitivity and the mid-tone log-radiance.
sensitivity = 6;
midPoint = 3;

minLogExposure = midPoint - sensitivity/2;
maxLogExposure = midPoint + sensitivity/2;

% Film works in stops.  Convert radiance to base 2 to compute perception.
% Values that are outside the film sensitivity are lost (min or max).
rgbRadiance = rgbRadiance * 2^(nStops);

rgbSimulated = rgbRadiance;
rgbSimulated(rgbRadiance ~= 0) = log2(rgbRadiance(rgbRadiance ~= 0));
rgbSimulated(rgbSimulated < minLogExposure) = minLogExposure;
rgbSimulated(rgbSimulated > maxLogExposure) = maxLogExposure;

% Convert to RGB.
rgbSimulated = uint8(255 * (rgbSimulated - minLogExposure) ./ ...
                     sensitivity);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jeffmatherphotography.com/dispatches/2007/10/film-like-tone-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
