Processing RAW Images in MATLAB
Processing RAW Images in MATLAB Rob Sumner Department of Electrical Engineering, UC Santa Cruz May 19, 2014 Abstract This is an instructional document concerning the steps required to read and display the unprocessed sensor data stored in RAW photo formats. RAW photo files contain the raw sensor data from a digital camera; while it can be quite scientifically useful, raw data must generally be processed before it can be displayed. In this tutorial, the nature of the raw sensor data is explored. The scaling and color adjustments applied in the standard processing/display chain are discussed. Solutions for reading RAW image data into MATLAB are presented, as well as a standard workflow for achieving a viewable output. 1 Introduction In the fields of image processing and computer vision, researchers are often indifferent to the origins of the images they work with. They simply design their algorithms to consider the image (typically an 8-bit in- tensity image or three-channel RGB image with 8 bits per channel) as a multivariate function, a stochastic field, or perhaps a graph of connected pixels. Sometimes, however, it is important to truly relate an image to the light of the scene from which it was captured. For example, this is the case for any processing that models the behavior of the imaging sensor, such as some High Dynamic Range (HDR) approaches and scientific imaging (e.g., astronomy). In such a case, it is vital to know the entire processing chain that was applied to an image after being captured. If possible, the best image to deal with is the sensor data straight from the camera, the raw data.
[Show full text]