<?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>Electric Shuttersounds &#187; The Science of It</title>
	<atom:link href="http://shuttersounds.thedailynathan.com/category/skills/science/feed/" rel="self" type="application/rss+xml" />
	<link>http://shuttersounds.thedailynathan.com</link>
	<description>Photographic adoxography at its finest</description>
	<lastBuildDate>Wed, 21 Apr 2010 10:33:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Quick Idea &#8211; Image Sensor Based on Time-to-saturate</title>
		<link>http://shuttersounds.thedailynathan.com/2010/04/21/image-sensor-based-on-time-to-saturate/</link>
		<comments>http://shuttersounds.thedailynathan.com/2010/04/21/image-sensor-based-on-time-to-saturate/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 10:33:52 +0000</pubDate>
		<dc:creator>Nathan Yan</dc:creator>
				<category><![CDATA[The Science of It]]></category>
		<category><![CDATA[blown highlights]]></category>
		<category><![CDATA[crushed shadows]]></category>
		<category><![CDATA[dynamic range]]></category>
		<category><![CDATA[image sensor]]></category>
		<category><![CDATA[noise]]></category>
		<category><![CDATA[noise floor]]></category>
		<category><![CDATA[photon noise]]></category>
		<category><![CDATA[photon-counting]]></category>
		<category><![CDATA[saturated photowell]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[shot noise]]></category>
		<category><![CDATA[time-to-saturate]]></category>

		<guid isPermaLink="false">http://shuttersounds.thedailynathan.com/?p=438</guid>
		<description><![CDATA[Apologies (as always) for the infrequent updates to this blog. This semester has been a lot rougher than in the past, so I don&#8217;t know if I&#8217;ll have time to post anything more until the end of break.
I had a quick idea I wanted to jot down, and I haven&#8217;t found anything on it. I [...]]]></description>
			<content:encoded><![CDATA[<p>Apologies (as always) for the infrequent updates to this blog. This semester has been a lot rougher than in the past, so I don&#8217;t know if I&#8217;ll have time to post anything more until the end of break.</p>
<p>I had a quick idea I wanted to jot down, and I haven&#8217;t found anything on it. I feel like someone out there must have thought up something similar already, or it&#8217;s already in the works at some black lab of a sensor company or something.</p>
<p>The idea I have is an image sensor that measures light intensity based on time-to-saturate &#8211; the time it takes for a particular photowell (representing a pixel) to saturate to its maximum capacity. The concept I&#8217;ve come up with has some interesting theoretical advantages in dynamic range over conventional photon-counting designs used today.</p>
<h2>Imaging today &#8211; photon counting</h2>
<p>First, a layman&#8217;s overview of how the conventional photon-counting design works in today&#8217;s sensors:</p>
<p>The sensor is a light sensitive device, and whenever photons come into contact with it, they are absorbed and a proportional number of photoelectrons are &#8220;knocked out&#8221; by the photon energy and collected in a photowell. From this photowell, a voltage measurement is taken, and this ultimately translates to a brightness value in the resulting image. In essence: Image brightness ∝ voltage reading ∝ electrons collected ∝ photons collected.</p>
<p>When taking an image, there is a set exposure duration, often referred to as a &#8220;shutter speed&#8221; in photography terms. This defines the time when a sensor is exposed to and detecting light &#8211; the exposure starts, light hits the sensors, exposure stops, and then we count the photons.</p>
<p>A limiting factor in this design is the photowell capacity. The number of electrons that can be stored in a well is finite, and once the photowell capacity is saturated, any additional electrons are not collected and hence the photons they correlate to are not counted. On the flipside, there is also a noise floor, where enough electrons must be gathered to produce a signal that is discernible from the random signal variation due to various forms of dark (thermal), electronics (read), and shot (photon) noise.</p>
<p>These two attributes lead to a problem of dynamic range &#8211; in scenes where light intensity differs greatly between the darkest and brightest areas, the sensor is simply unable to measure the full range of brightnesses and must cap measurements above and/or below a certain threshold.  This leads to the &#8220;blown highlights&#8221; and &#8220;crushed shadows&#8221; attribute often found in photos of large dynamic range scenes.</p>
<h2>Time-to-saturate</h2>
<p>The idea behind a time-to-saturate sensor is fairly simple. What we aim to measure in an image is light intensity &#8211; the flux of photons per time per area. The area is cancelled out of the equation by the photosite corresponding to a pixel being a certain area, so the measure we are really after is photons per time, for each pixel.</p>
<p>With photon counting, we fix a shutter speed (time duration), and then count the number of photons (via voltage measurement of photoelectrons) captured in that span, and use both to derive the intensity:</p>
<p>Intensity = photons / time = photons recorded / shutter speed</p>
<p>In time-to-saturate, the photon count is fixed at the capacity of the photowell, and the variable we measure is the time it takes for an individual well to saturate fully to the capacity.</p>
<p>Intensity = photons / time = max photon capacity / time-to-reach max-photon-capacity</p>
<p>How would the system work exactly? With a time-to-saturate sensor, we use as long a shutter speed as needed to fully saturate all photowells (in a conventional sensor, this is the minimum shutter speed to generate an all-white (max brightness) image). At the moment a photowell reaches capacity, it records a timestamp which will indicate how long it took to reach capacity. Once the exposure is finished, we are then left with a two-dimensional array of saturation times, rather than photon counts. Rather than recording 100k photons at one photosite, and 50k photons at a neighboring photosite where light was half as intense, the readings we get from this sensor would be along the lines of 1 millisecond time-to-saturate for the first photosite, and 2 millisecond time-to-saturate for the second, half-intensity photosite.</p>
<h2>Key Advantages</h2>
<p>There are two key advantages in our ability to take light intensity readings, both ultimately advancing dynamic range:</p>
<ul>
<li>There is virtually no limitation to the range of highlights we can capture, unlike the limitation imposed by the photowell capacity with photon-counting sensors. In our example, if there was a third photosite which had double the intensity of the first 100k photosite, and was exposed to 200k photons, it would only end up recording 100k photons since this is the capacity of the photosite, and thus both pixels would record the same white (max brightness) value, even though the 200k photosite pixel clearly represents a brighter area in the scene than the 100k photosite. A time-to-saturate measurement, by contrast, would simply produce a shorter time measurement: the 200k photosite saturates in 0.5 milliseconds, which we can compare to the 1 millisecond measurement for the first photosite and clearly conclude that the 200k photosite is twice as bright.</li>
<li>Noise levels are reduced to the level of a maximally-saturated photowell. In a photon-counting sensor, any photosite that does not record a max white value by definition recorded a fewer number of photons, and thus produces a sub-optimal signal-to-noise ratio (SNR). Photon or &#8220;shot&#8221; noise has a standard deviation of the square root of the signal &#8211; thus for 100k photons we have √(100,000) = 316.2 photons of standard deviation, and a SNR of N/√(N) = √(N) = 316.2. For 50k photons, however, we have an SNR of √(50,000) = 223.6. In contrast, all photosites in a time-to-saturate sensor reach the max well capacity, and will thus all have the max SNR. This ensures that all photosites record values well above the noise floor, and additionally reduces photon noise for all pixels to the level of a maximally saturated photosite (the 100k photon, 316.2 SNR in this example).</li>
</ul>
<p>In theory, such a sensor would have an infinite dynamic range &#8211; the brightest intensities are simply recorded as short time-to-saturate durations, and enough samples are recorded from the darkest areas to place the measurement well above the noise floor.  This would have huge implications for large dynamic range photography and imaging in general, to be able to record the entire dynamic range of a scene in a single exposure, without having to resort to processing tricks like selective shadow/highlight adjustment or high dynamic range (HDR) blending.</p>
<h2>Potential Feasibility Issues</h2>
<p>I&#8217;m not aware of any sources that have thought of this idea before, but if there are then there must be some large feasibility (or perhaps cost) issues that have prevented its development thus far. The few issues that I can imagine, none of which seem like dealbreakers and none of which would place performance any worse than that of photon-counting methods, in theory:</p>
<ul>
<li>Timing accuracy/precision of photowell saturation. While photon-counting relies on accurate and precise voltage readings from the photowells, a time-to-saturate sensor would need good accuracy and precision in recording time when a photowell reaches saturation. How precise does the time need to be, to equal the theoretical precision of today&#8217;s cameras? Taking the contemporary example of a 100k photon capacity photowell, hooked up to a sensor/imaging pipeline with a 14-bit analog-to-digital converter (found on most high-end cameras today), we would need to quantize measurable photon counts into 2^14 = 16,384 steps. 100,000 / 16,384 = ~6 photons, which is the precision we need to be able to measure time-to-saturation by. Most high-end cameras today operate with a minimum shutter speed of 1/8000 second (125 microseconds) &#8211; a 100k photowell that fully saturates in this time (this is the maximum light intensity the photon-counting sensor is able to record, under any settings) is thus 100,000 photons/125 microseconds = 800,000,000 (0.8 billion) photons / second.  Finally, we use this intensity along with our 6 photon steps to arrive at 6 photons / (0.8 billion photons/second) = 7.6 nanoseconds. This is the precision with which a time-to-saturate sensor needs to record time by. Of course, depending on the application the numbers can vary &#8211; with fewer bits per pixel, we would need less precision (an 8-bit jpeg in this example would need just ~0.5 microseconds of precision), with lower photowell capacity we would need greater precision, and with a larger minimum exposure time we would need less precision.</li>
<li>To take advantage of the greater dynamic range capabilities of a time-to-saturate sensor, the exposure duration must be longer than a conventional photon-counting sensor, to capture more light. For static scenes, this is unlikely to be an issue, but for dynamic scenes (e.g. moving subjects), the exposure duration can only be stretched so far before issues such as motion blur or camera shake blur are introduced. At worst, however, the exposure can simply stop after a defined maximum exposure time &#8211; at this point any photowells which have not reached capacity simply output a voltage reading like in a conventional sensor &#8211; this reading is then used to extrapolate a time-to-saturate which can then be compared with the other photosites. In the worst case, the maximum exposure time is the same as the exposure time in a conventional photon-counting sensor, and would produce an noise level and at least the same dynamic range, if not a greater dynamic range captured in the highlights. For any exposure duration exceeding that of the conventional sensor however, noise levels will be reduced and a greater dynamic range in the shadow regions will be achieved as well.</li>
</ul>
<p>What do you think?  Any potential pitfalls or feasibility issues I might have missed? I&#8217;m especially interested if anyone has come across a source with similar ideas before. Feel free to post links in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://shuttersounds.thedailynathan.com/2010/04/21/image-sensor-based-on-time-to-saturate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An explanation of Fujifilm&#8217;s Super CCD EXR sensor</title>
		<link>http://shuttersounds.thedailynathan.com/2010/01/12/an-explanation-of-fujifilms-super-ccd-exr-sensor/</link>
		<comments>http://shuttersounds.thedailynathan.com/2010/01/12/an-explanation-of-fujifilms-super-ccd-exr-sensor/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 10:09:55 +0000</pubDate>
		<dc:creator>Nathan Yan</dc:creator>
				<category><![CDATA[Market Analysis]]></category>
		<category><![CDATA[Skills of the Trade]]></category>
		<category><![CDATA[The Science of It]]></category>
		<category><![CDATA[bayer filter]]></category>
		<category><![CDATA[DSLR]]></category>
		<category><![CDATA[EXR]]></category>
		<category><![CDATA[F200EXR]]></category>
		<category><![CDATA[F70EXR]]></category>
		<category><![CDATA[Fuji]]></category>
		<category><![CDATA[Fujifilm]]></category>
		<category><![CDATA[HDR]]></category>
		<category><![CDATA[high dynamic range]]></category>
		<category><![CDATA[high resolution]]></category>
		<category><![CDATA[high sensitivity]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[pixel-binning]]></category>
		<category><![CDATA[S200EXR]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[Super CCD]]></category>
		<category><![CDATA[SuperCCD]]></category>
		<category><![CDATA[switchable sensor]]></category>
		<category><![CDATA[wide dynamic range]]></category>

		<guid isPermaLink="false">http://shuttersounds.thedailynathan.com/?p=428</guid>
		<description><![CDATA[A look at Fujifilm&#8217;s innovative EXR sensor, the latest iteration of its flagship Super CCD sensor, along with some analysis of images from production cameras. Admittedly this would have been more interesting as a speculative piece a year ago, but better late than never
tl;dr: Fujifilm&#8217;s EXR sensor is extraordinary, mostly for its dynamic range. If [...]]]></description>
			<content:encoded><![CDATA[<p><em>A look at Fujifilm&#8217;s innovative EXR sensor, the latest iteration of its flagship Super CCD sensor, along with some analysis of images from production cameras. Admittedly this would have been more interesting as a speculative piece a year ago, but better late than never</em></p>
<p><strong><em>tl;dr: Fujifilm&#8217;s EXR sensor is extraordinary, mostly for its dynamic range. If you&#8217;re after the best non-DSLR image quality around, your choices start at the Fuji F200EXR, F70EXR, S200EXR, and end there.</em></strong></p>
<p>Fujifilm has long been a leader in revolutionary sensor technology, particularly at the smaller scale sensor market where the majority of manufacturers have long been content pumping out traditional, vanilla CCD sensors with square grid-based Bayer Filter Arrays.</p>
<p>In September of 2008, <a href="http://www.fujifilm.com/products/digital_cameras/topics/2008/0922_01.html">announced plans for their latest sensor</a>: the Super CCD EXR, which combines the unique color filter array (CFA) and pixel binning features of various previous sensors into a single &#8220;switchable&#8221; sensor that can be optimized in one of several areas (which are typically mutually exclusive when designing a sensor): high resolution, high dynamic range, and low noise.</p>
<h2>High resolution</h2>
<p>High resolution mode is the default mode, which utilizes the full set of photosites on the sensor and produces an image with a corresponding pixel on each photosite &#8211; nothing too special here, though Fuji claims the diagonal layout of photosites (as opposed to simple square grid) helps to improve resolution.</p>
<h2>High sensitivity</h2>
<div id="attachment_430" class="wp-caption aligncenter" style="width: 268px"><img class="size-full wp-image-430" title="Comparison of typical Bayer CFA and Fujifilm SuperCCD EXR CFA" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2010/01/pic_03.jpg" alt="" width="258" height="100" /><p class="wp-caption-text">A comparison of a typical Bayer CFA (left) and the CFA on Fujifilm&#39;s new EXR sensor (right)</p></div>
<p style="text-align: left; ">The second mode of operation for the EXR sensor is a high-sensitivity mode which Fuji calls &#8220;Pixel Fusion Technology&#8221;, which is fancy marketspeak for pixel-binning (combining reading from adjacent pixels together to produce a better signal). With the EXR&#8217;s pair-based CFA layout, Fujifilm claims that interpolation (and thus color resolution) will be more accurate because the binned pixels are closer together (e.g. the pair blue pixels are pretty much in the same location, while they&#8217;re separated by two pixel lengths in a standard square-grid Bayer array. I don&#8217;t know that I buy this argument particularly well &#8211; it&#8217;s true that same-color pixel values will be more accurate since they&#8217;re closer, but you can&#8217;t get something for nothing: for example, the average distance from red-to-blue is going to be increased, which lowers accuracy for interpolating blue values at red pixels.</p>
<p><span id="more-428"></span>Regardless of whether their CFA and photosite layout nets them better interpolation, the key element here is the combination of pixel readings to generate a stronger signal, thus decreasing the proportion of noise. Using microlenses to patch up the fill factor (area of the sensor which is actually responsive to light) and various optimizations to lower read noise will get the high sensitivity mode EXR sensor closer to the noise level of a natively lower resolution sensor.</p>
<h2>Wide Dynamic Range</h2>
<div id="attachment_431" class="wp-caption aligncenter" style="width: 535px"><img class="size-full wp-image-431 " title="A diagram detailing the two exposures captured by the EXR sensor when operating in large dynamic range mode" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2010/01/fig_05.jpg" alt="A diagram detailing the two exposures captured by the EXR sensor when operating in large dynamic range mode" width="525" height="281" /><p class="wp-caption-text">A diagram detailing the two exposures captured by the EXR sensor when operating in large dynamic range mode</p></div>
<p>The third mode of operation for the EXR sensor uses variable photosite sensitivity to greatly extend dynamic range.  The concept is taken from some of Fuji&#8217;s older generation SuperCCD SR sensors &#8211; at a given pixel location there are in fact two photosites, one operating at a lower sensitivity and one operating at a higher sensitivity. This essentially produces two images for any particular shot, one at low sensitivity that is underexposed (capturing highlight detail, such as a bright sky), and one at high sensitivity that is overexposed (capturing shadow detail, such as a shaded building face). These images are combined, much like HDR combination is done, to create a single image which captures a much larger dynamic range than a single exposure could.</p>
<p>Edit: <a href="http://www.dpreview.com/reviews/fujifilmf200exr/page9.asp">dpreview seems to report</a> that the EXR sensor actually achieves this by operating one image at a shorter exposure time (shutter speed) than the other, rather than actually varying the sensitivity. If so this would be even better, as you&#8217;d have lower noise due to operating both sets of photosites at the same lower sensitivity.</p>
<p>As with pixel binning for greater sensitivity, the pixel count in the resulting image will have to halve as well.</p>
<p>There are some notable improvements compared to Fuji&#8217;s older SR sensors. For starters, the low and high sensitivity photosites are now of equal size, which Fuji claims will allow for a greater dynamic range extension (the SR sensors consisted of mostly &#8220;regular&#8221; photosites with tiny &#8220;low sensitivity&#8221; photosites sandwiched in). Furthermore, based on most of the image samples that can be found, the recombination method used for EXR is a bit closer to HDR blending, which doesn&#8217;t map values linearly on the same tone curve &#8211; this produces a punchier photo with better contrast that still looks natural upon viewing (due to the way human vision judges brightness in relative terms rather than absolute), even if its not quite pixel-accurate. This seems to address one of the complaints about Fuji&#8217;s older SR sensors, which provided a large dynamic range but ended up squashing it linearly to the same 12-bit RAWs or 8-bit JPEG images that all other cameras provide &#8211; the results were images that did have more highlight detail but looked &#8220;flat&#8221; and lacked contrast (because that 0.5-1 stop of highlight detail at the top is squashed into a small 250-255 pixel value range).</p>
<p>The EXR sensor has a big advantage over conventional HDR as well (i.e. taking multiple exposures and blending them): it captures an extended range image in a single instance, making it usable for moving subjects (HDR sports photos, yay!).</p>
<h2>The Results</h2>
<p>The first EXR sensor, the Fujifilm F200EXR, debuted in February 2009, and was followed up not long afterwards by the S200EXR bridge camera and the ultracompact ultrazoom F70EXR, giving us a chance to see some hard results.</p>
<p>Imaging-resource, as always, has perhaps the most comprehensive test bed of images, and samples from their express review of the F200EXR can be found here: <a href="http://www.imaging-resource.com/PRODS/F200EXR/F200EXRA7.HTM">http://www.imaging-resource.com/PRODS/F200EXR/F200EXRA7.HTM</a></p>
<p>Their site isn&#8217;t the most comparison-friendly however (though you can <a href="http://www.imaging-resource.com/IMCOMP/COMPS01.HTM">give their comparator a shot</a>) so I&#8217;ll link to dcresource&#8217;s reviews of the <a href="http://www.dcresource.com/reviews/fuji/finepix_f200exr-review/using">F200EXR</a> and <a href="http://www.dcresource.com/reviews/fuji/finepix_f70exr-review/using">F70EXR</a> as well and reference these.</p>
<p>The first thing to note is that Fujifilm hasn&#8217;t lost a step in the noise race &#8211; in both the standard high resolution (no binning) and high sensitivity (binning, lower resolution) modes, the EXR sensor simply wipes the floor with every camera on the market this side of a full-fledged DSLR.  In the F200EXR review there is a side-by-side comparison (search for the text &#8220;Again, things look great through ISO 400&#8243; &#8211; it&#8217;s right above this) between the 6MP high-sensitivity mode image, and a 12MP high-resolution mode image that is downsized to 6MP &#8211; essentially doing the same as pixel binning but off-camera, and digitally, rather than in-camera and analog.  The result is a slightly crisper image but noticeably more noise, though the effect isn&#8217;t dramatic.</p>
<p>What&#8217;s interesting is that the side-by-side comparison in the F70EXR review shows that the high-resolution mode, downsized to the same resolution as the high-sensitivity mode, actually produces <em>better </em>results &#8211; the same amount of noise but much crisper detail. This seems to punch a hole in the effectiveness of the EXR&#8217;s in-camera pixel-binning: if the digital data (full of rounding errors, and compressed to 8-bit jpeg) can be averaged and produce more effective results than binning the analog data (the raw readings from the sensor), then we can surmise that having more accurate data on the location of brightness values (i.e. more pixels) helps us produce more accurate images overall than having slightly more accuracy on the actual brightness values.</p>
<p>Further down on the F200EXR review (search &#8220;so the two would be the same (6MP) resolution&#8221; &#8211; right below this), you&#8217;ll see a direct comparison using the camera&#8217;s wide dynamic range mode. As opposed to the high sensitivity mode, here we can see real, significant benefits &#8211; highlight detail that is hopelessly blown out in the left image is very much visible in the wide dynamic range image. For those of you too lazy to navigate the admittedly long and cumbersome dcresource review pages, here&#8217;s a marketing image from Fujifilm that gives you the general idea:</p>
<div id="attachment_432" class="wp-caption aligncenter" style="width: 720px"><img class="size-full wp-image-432 " title="Standard dynamic range (left) and wide dynamic range (right) - probably exaggerated a bit" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2010/01/pic_19_l.jpg" alt="Standard dynamic range (left) and wide dynamic range (right) - probably exaggerated a bit" width="710" height="264" /><p class="wp-caption-text">Standard dynamic range (left) and wide dynamic range (right) - probably exaggerated a bit</p></div>
<p>This image gives you a general idea of the difference, though I wouldn&#8217;t take it at face value. The image on the right is probably a fair representation of what you&#8217;ll get using the wide DR mode (and you can compare this with shaded interior/sunlit exterior/sky photos you&#8217;ve probably taken), but the image on the left has way more contrast (and less DR) than any typical camera would, on its default settings at least.</p>
<h2>The Triumph of EXR &#8211; Dynamic Range</h2>
<p>So is Fuji&#8217;s EXR sensor a success? It depends on what you&#8217;re after. Many diehard Fujifilm Super CCD fans fell in love with the low-resolution F10/11 and F30/31 ultracompacts, both of which came in at just 6MP and absolutely wiped the floor with the competition in terms of noise performance.  And while subsequent SuperCCD iterations have maintained a clear advantage over competitors in this area (and this newest EXR sensor does to it better than its predecessor), the fact is that the high 12MP or so resolutions found on today&#8217;s sensors still compromise noise performance, despite any fancy &#8220;Pixel Fusion Technology&#8221; that Fujifilm tries to market.</p>
<p>The true triumph of the EXR sensor is in its dynamic range capability, and its separate pixel design (it essentially operates two sensors) works not only better than any of its competitors, but far better than even a natively lower resolution sensor.  While a larger photosite does afford more highlight headroom, halving the pixels (doubling the area) affords at most 1 stop. The EXR&#8217;s method, which essentially captures two independent exposures, is in theory capable of capturing dynamic range that is infinitely far apart, though for most scenes they&#8217;ll likely need to overlap to avoid gaps in coverage, which based on the settings allowed on current cameras is 3 stops.</p>
<p>According to <a href="http://www.dpreview.com/reviews/fujifilmf200exr/page9.asp">dpreview&#8217;s dynamic range test of the F200EXR</a>, the EXR can deliver nearly 11 EV (stops) of dynamic range.  Not only does that far outclass any compact (or even the bulky SLR-like bridges that use the same small sensors) on the market, but <strong>exceeds the dynamic range</strong> of DSLRs like the Canon 7D, Nikon D300, et. al, which all range around 8 EV for their jpegs. With a bit of tweaking with RAW files in Adobe Camera Raw, the DSLRs just about manage 10EV.</p>
<p>It&#8217;s simply remarkable that jpegs from a camera with a pint-sized sensor can beat out RAW images from the highest-end DSLRs, but that&#8217;s what innovative technology can do for you over hammering away with sheer physical size and trying small refinements from there (which is how most of the rest of the sensor industry has been operating for years). I can&#8217;t begin to fathom how much the Super CCD would change the landscape of photography if Fujifilm ever scaled up the sensor to DSLR size.</p>
]]></content:encoded>
			<wfw:commentRss>http://shuttersounds.thedailynathan.com/2010/01/12/an-explanation-of-fujifilms-super-ccd-exr-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Demosaic Project</title>
		<link>http://shuttersounds.thedailynathan.com/2009/06/02/the-demosaic-project/</link>
		<comments>http://shuttersounds.thedailynathan.com/2009/06/02/the-demosaic-project/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 02:07:42 +0000</pubDate>
		<dc:creator>Nathan Yan</dc:creator>
				<category><![CDATA[Skills of the Trade]]></category>
		<category><![CDATA[The Science of It]]></category>
		<category><![CDATA[Bayer]]></category>
		<category><![CDATA[bayer filter]]></category>
		<category><![CDATA[bayer pattern]]></category>
		<category><![CDATA[color filter array]]></category>
		<category><![CDATA[demosaic]]></category>
		<category><![CDATA[demosaicing]]></category>
		<category><![CDATA[interpolation]]></category>
		<category><![CDATA[RGB]]></category>

		<guid isPermaLink="false">http://shuttersounds.thedailynathan.com/?p=345</guid>
		<description><![CDATA[
So over the past couple of weeks I&#8217;ve been working on a little project called Demosaic.  It&#8217;s a little online demo that interpolates image data from (simulated) raw sensor output, similar to what almost every digital camera used today has to do.
http://www.thedailynathan.com/demosaic/
The core of the problem is that most digital cameras today make use of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.thedailynathan.com/demosaic"><img class="aligncenter size-full wp-image-344" title="demosaic_banner_faded" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/demosaic_banner_faded.png" alt="" width="795" height="314" /></a></p>
<p>So over the past couple of weeks I&#8217;ve been working on a little project called Demosaic.  It&#8217;s a little online demo that interpolates image data from (simulated) raw sensor output, similar to what almost every digital camera used today has to do.</p>
<p><a href="http://www.thedailynathan.com/demosaic/">http://www.thedailynathan.com/demosaic/</a></p>
<p><span id="more-345"></span>The core of the problem is that most digital cameras today make use of a color filter array, or CFA, in order to differentiate intensities based on wavelength, and thereby derive color.  CFAs basically layer different color filters over each photodetector, only allowing that color light through and thereby isolating that intensity.  By far the most common type of CFA used today is the Bayer filter, although many other variants exist.</p>
<div id="attachment_352" class="wp-caption aligncenter" style="width: 385px"><img class="size-full wp-image-352" title="375px-bayer_pattern_on_sensor_profilesvg1" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/375px-bayer_pattern_on_sensor_profilesvg1.png" alt="" width="375" height="240" /><p class="wp-caption-text">Diagram of a Bayer pattern sensor</p></div>
<p style="text-align: left;">One of the downsides of using a CFA is that each photodetector, which normally corresponds to a pixel location in the final image, only detects light intensity for one wavelength range.  So a blue-filtered detector will record exactly how much blue light was at the location, but has no idea how much red or green light there might be, for instance.</p>
<p>Digital cameras must therefore interpolate the missing data based on values recorded at nearby photodetectors, in a process known as &#8220;demosaicing&#8221;.  Lots of different algorithms exist, with different tradeoffs in speed, quality, and suitability for different subject matter.</p>
<p>I developed the Demosaic demo as a sort of off-shoot of a broader research report I did on color detection for electronic image sensors for my Electrical Engineering 119 (EE119) optical engineering course at UC Berkeley. (That&#8217;ll get posted soon as well, probably in a few installments and after I get it reviewed and edited a few times.)  Demosaic takes a test Bayer-pattern image (containing only the red, green, or blue values recorded at each location) and renders it into a final image using a variety of different algorithms.</p>
<p>As an example, here&#8217;s an original test image (images magnified 3x for clarity):</p>
<p style="text-align: center;"><img class="size-full wp-image-347  aligncenter" title="original" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/original.png" alt="" width="300" height="300" /></p>
<p>And here&#8217;s the raw Bayer data for the image. Every pixel is encoded with just a green, red, or blue value denoting the intensity of that color.  To get a final image, we have to guess blue and red values at every green pixel, green and blue values at every red pixel, and so on.</p>
<p style="text-align: center;"><img class="size-full wp-image-348  aligncenter" title="bayer" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/bayer.png" alt="" width="300" height="300" /></p>
<p>One of the most basic ways to interpolate the information is to simply take an average (arithmetic mean) of the surrounding pixels.  This is known as bilinear interpolatin, and produces a result like this:</p>
<p style="text-align: center;"><img class="size-full wp-image-349  aligncenter" title="bilinear" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/bilinear.png" alt="" width="300" height="300" /></p>
<p>Not terrible, especially as bilinear interpolation is just about the fastest algorithm out there (after nearest neighbor interpolation, which simply picks a single nearby pixel).  The demosaicing artifacts are readily noticeable, however &#8211; color artifacting at white/black transitions, and &#8220;zipper&#8221; pattern artifacting along edges.  Needless to say, this really isn&#8217;t all that acceptable for serious imaging applications.</p>
<p>Here&#8217;s another example with a more advanced algorithm known as Edge-sensing bilinear.  This is an adaptive algorithm, which actually analyzes the image for local spatial features (in this case, harsh intensity transitions, or &#8220;edges&#8221;) and interpolates the data based on this context.</p>
<p style="text-align: center;"><img class="size-full wp-image-351  aligncenter" title="relative_edgesensing" src="http://shuttersounds.thedailynathan.com/wp-content/uploads/2009/06/relative_edgesensing.png" alt="" width="300" height="300" /></p>
<p>While not perfect, you can see this algorithm gets rid of many of the artifacts present in simple non-adaptive bilinear interpoltion.  The zipper pattern artifacting has mostly disappeared, and the color artifacts at black/white transitions is also less apparent.  As a tradeoff, however, this edge-sensing algorithm comes at a greater computational cost compared to simple bilinear interpolation.</p>
<p>To learn more about the <a href="http://www.thedailynathan.com/demosaic/algorithms.php?image=raw.png">different algorithms</a> and run <a href="http://www.thedailynathan.com/demosaic/comparison.php?image=raw.png">side-by-side comparisons</a>, <a href="http://www.thedailynathan.com/demosaic/">check out the Demosaic site</a>.  Also feel free to upload <a href="http://www.thedailynathan.com/demosaic/custom.php?image=raw.png">your own custom images</a> to see how the algorithms perform on different types of image content.</p>
]]></content:encoded>
			<wfw:commentRss>http://shuttersounds.thedailynathan.com/2009/06/02/the-demosaic-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
