Implementation of Adaptive Coded Aperture Imaging using a Digital Micro-Mirror Device for Defocus Deblurring

Similar documents
Dappled Photography: Mask Enhanced Cameras for Heterodyned Light Fields and Coded Aperture Refocusing

Coded Computational Photography!

Computational Cameras. Rahul Raguram COMP

Coded Aperture and Coded Exposure Photography

Coded Aperture for Projector and Camera for Robust 3D measurement

Coded photography , , Computational Photography Fall 2018, Lecture 14

Coded photography , , Computational Photography Fall 2017, Lecture 18

Computational Approaches to Cameras

Deconvolution , , Computational Photography Fall 2017, Lecture 17

Deconvolution , , Computational Photography Fall 2018, Lecture 12


Simulated Programmable Apertures with Lytro

Analysis of Coded Apertures for Defocus Deblurring of HDR Images

Deblurring. Basics, Problem definition and variants

Motion-invariant Coding Using a Programmable Aperture Camera

Near-Invariant Blur for Depth and 2D Motion via Time-Varying Light Field Analysis

A Review over Different Blur Detection Techniques in Image Processing

To Do. Advanced Computer Graphics. Outline. Computational Imaging. How do we see the world? Pinhole camera

Coding and Modulation in Cameras

What are Good Apertures for Defocus Deblurring?

Coded Aperture Pairs for Depth from Defocus

LENSLESS IMAGING BY COMPRESSIVE SENSING

Optical Performance of Nikon F-Mount Lenses. Landon Carter May 11, Measurement and Instrumentation

Removal of Glare Caused by Water Droplets

Image Deblurring and Noise Reduction in Python TJHSST Senior Research Project Computer Systems Lab

Changyin Zhou. Ph.D, Computer Science, Columbia University Oct 2012

Modeling and Synthesis of Aperture Effects in Cameras

Extended depth of field for visual measurement systems with depth-invariant magnification

BEAM HALO OBSERVATION BY CORONAGRAPH

Design of Temporally Dithered Codes for Increased Depth of Field in Structured Light Systems

Computational Camera & Photography: Coded Imaging

Point Spread Function Engineering for Scene Recovery. Changyin Zhou

Optical Coherence: Recreation of the Experiment of Thompson and Wolf

Lenses, exposure, and (de)focus

Restoration of Motion Blurred Document Images

Today. Defocus. Deconvolution / inverse filters. MIT 2.71/2.710 Optics 12/12/05 wk15-a-1

Toward Non-stationary Blind Image Deblurring: Models and Techniques

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Mechanical Engineering Department. 2.71/2.710 Final Exam. May 21, Duration: 3 hours (9 am-12 noon)

Transfer Efficiency and Depth Invariance in Computational Cameras

SURVEILLANCE SYSTEMS WITH AUTOMATIC RESTORATION OF LINEAR MOTION AND OUT-OF-FOCUS BLURRED IMAGES. Received August 2008; accepted October 2008

SUPER RESOLUTION INTRODUCTION

Perceptually-Optimized Coded Apertures for Defocus Deblurring

Module 3: Video Sampling Lecture 18: Filtering operations in Camera and display devices. The Lecture Contains: Effect of Temporal Aperture:

Focused Image Recovery from Two Defocused

Admin Deblurring & Deconvolution Different types of blur

When Does Computational Imaging Improve Performance?

Criteria for Optical Systems: Optical Path Difference How do we determine the quality of a lens system? Several criteria used in optical design

Be aware that there is no universal notation for the various quantities.

On the Recovery of Depth from a Single Defocused Image

10.2 Images Formed by Lenses SUMMARY. Refraction in Lenses. Section 10.1 Questions

Optical design of a high resolution vision lens

Determining MTF with a Slant Edge Target ABSTRACT AND INTRODUCTION

Short-course Compressive Sensing of Videos

DEFOCUS BLUR PARAMETER ESTIMATION TECHNIQUE

Active Aperture Control and Sensor Modulation for Flexible Imaging

A Mathematical model for the determination of distance of an object in a 2D image

Sensors and Sensing Cameras and Camera Calibration

Wavefront coding. Refocusing & Light Fields. Wavefront coding. Final projects. Is depth of field a blur? Frédo Durand Bill Freeman MIT - EECS

Reikan FoCal Aperture Sharpness Test Report

Elemental Image Generation Method with the Correction of Mismatch Error by Sub-pixel Sampling between Lens and Pixel in Integral Imaging

UTILIZING A 4-F FOURIER OPTICAL SYSTEM TO LEARN MORE ABOUT IMAGE FILTERING

Coded Exposure Deblurring: Optimized Codes for PSF Estimation and Invertibility

Selection of Temporally Dithered Codes for Increasing Virtual Depth of Field in Structured Light Systems

Reikan FoCal Aperture Sharpness Test Report

Hexagonal Liquid Crystal Micro-Lens Array with Fast-Response Time for Enhancing Depth of Light Field Microscopy

Stereoscopic Hologram

Lensless Imaging with a Controllable Aperture

Image and Depth from a Single Defocused Image Using Coded Aperture Photography

THE RESTORATION OF DEFOCUS IMAGES WITH LINEAR CHANGE DEFOCUS RADIUS

A Framework for Analysis of Computational Imaging Systems

4 STUDY OF DEBLURRING TECHNIQUES FOR RESTORED MOTION BLURRED IMAGES

Adaptive Coronagraphy Using a Digital Micromirror Array

La photographie numérique. Frank NIELSEN Lundi 7 Juin 2010

Reikan FoCal Aperture Sharpness Test Report

Capturing Light. The Light Field. Grayscale Snapshot 12/1/16. P(q, f)

Non-Uniform Motion Blur For Face Recognition

ELEC Dr Reji Mathew Electrical Engineering UNSW

6.A44 Computational Photography

Reikan FoCal Aperture Sharpness Test Report

Single Digital Image Multi-focusing Using Point to Point Blur Model Based Depth Estimation

Extended depth-of-field in Integral Imaging by depth-dependent deconvolution

ECEN 4606, UNDERGRADUATE OPTICS LAB

Computational Photography: Principles and Practice

INFRARED IMAGING-PASSIVE THERMAL COMPENSATION VIA A SIMPLE PHASE MASK

Image Deblurring with Blurred/Noisy Image Pairs

Improved motion invariant imaging with time varying shutter functions

Basic principles of photography. David Capel 346B IST

Extended Depth of Field Catadioptric Imaging Using Focal Sweep

Gradient-Based Correction of Chromatic Aberration in the Joint Acquisition of Color and Near-Infrared Images

Speckle free laser projection

Image Formation. Light from distant things. Geometrical optics. Pinhole camera. Chapter 36

Defocus Map Estimation from a Single Image

digital film technology Resolution Matters what's in a pattern white paper standing the test of time

IMAGE SENSOR SOLUTIONS. KAC-96-1/5" Lens Kit. KODAK KAC-96-1/5" Lens Kit. for use with the KODAK CMOS Image Sensors. November 2004 Revision 2

Applications of Flash and No-Flash Image Pairs in Mobile Phone Photography

Reikan FoCal Fully Automatic Test Report

Ultralight Weight Optical Systems using Nano-Layered Synthesized Materials

Lecture 22: Cameras & Lenses III. Computer Graphics and Imaging UC Berkeley CS184/284A, Spring 2017

Optimal Single Image Capture for Motion Deblurring

Computational Photography

Transcription:

Implementation of Adaptive Coded Aperture Imaging using a Digital Micro-Mirror Device for Defocus Deblurring Ashill Chiranjan and Bernardt Duvenhage Defence, Peace, Safety and Security Council for Scientific and Industrial Research Pretoria, South Africa Email: {achiranjan, bduvenhage}@csir.co.za Fred Nicolls Department of Electrical Engineering University of Cape Town Cape Town, South Africa Email: Fred.nicolls@uct.ac.za Abstract Digital image processing (DIP) and computational photography are ever growing fields with new focuses on coded aperture imaging and its real world applications. Traditional coded aperture imaging systems consisted of statically coded masks that were designed and constructed from cardboard or other opaque materials and could not be altered once their shape had been defined. This is undesirable as numerous aperture pattern masks exist, each with their own advantages and disadvantages, and alternating between aperture shapes with a traditional camera quickly and efficiently is impractical. This paper aims towards developing an adaptive coded aperture imaging system utilizing a digital micro-mirror device (DMD) as a programmable aperture that is able to switch between different aperture patterns quickly and efficiently. This provides all the advantages of traditional coded aperture imaging systems but without the disadvantage of having a static aperture in the aperture plane. I. INTRODUCTION Digital image processing (DIP) has very wide applications in numerous environments and almost every technical field today is impacted, either directly or indirectly, by digital image processing. Associated closely with the field of DIP is computational photography, a field of research that comprises of techniques in computational imaging to improve images that are taken as a result of digital photography. Computational photography is a highly interdisciplinary field which utilizes concepts and principles from engineering, physics, optics, mathematics, computer vision and image processing. Although many techniques exist that allow for one to optically code images, the focus of this paper is developing a coded aperture imaging system with a programmable aperture mask that exhibits all the advantages of conventional coded aperture systems but without the disadvantage of having a statically coded aperture mask. While many applications of coded apertures exist, this paper focuses only on defocus deblurring, which is the attempt to recover a sharp, in-focus image from a blurred one. The scope of this work includes analysing the current pitfalls of conventional statically coded aperture masks and determining the viability of having a programmable mask technology in the aperture plane of an imaging system. Previous attempts to introduce a dynamically programmable aperture into an imaging system has led to poor image quality and thus poor results. This paper aims to address these issues and provide a more viable programmable aperture technology that offers better quality images. The next section, Section II gives the background to development of the adaptive coded aperture imaging system. This is then followed by an overview of related work in Section III. Section IV details the design and implementation of the required system using hardware and software available. Section V details the results obtained after the system was developed and Section VI presents the concluding remarks as well as the future work that could be implemented to the system. II. BACKGROUND In a world that is 3-dimensional in nature, traditional photography captures only 2 dimensions, that means that a great detail of information is lost. Digital cameras today have limited depth of field (DOF) and thus the parts of the image away from the plane of focus appear blurred. Using advanced camera systems, i.e. complex optics and electronics, allows one to capture an all-focus image, i.e. one that has a large DOF for the purposes of, for example, tracking. One of the ways used to deblur an out of focus image is the use of a coded aperture mask which is usually inserted into the aperture plane of a lens or camera system. This patterned occluder alters the incident light so that the image captured by the sensor is not the final desired image but is coded to facilitate the extraction of more information than if it had not been coded at all. Coded aperture imaging has been around for several years, with coded masks developed from static materials that often cannot be changed once a pattern is encoded onto them. This is undesirable and thus implementing dynamic aperture masks that can be programmed to change shape is advantageous. It opens up a

whole new range of possibilities in coded aperture imaging such as being able to test aperture mask shapes that could previously not be constructed using conventional cardboard methods. Many different technologies available today could be used as programmable apertures but this paper will investigate the use of a digital micro-mirror device (DMD) as a potential aperture mask. Digital micro-mirror devices are small electromechanical devices that consist of programmable arrays of individual microscopic mirrors that can steer light in any one of two directions depending on the tilt of the mirrors. into the aperture plane of the lens. A novel deconvolution algorithm was also developed to better deblur an out-of-focus image based on natural image priors. The problem with this implementation was that the aperture pattern used for defocus deblurring could not be used for depth estimation as a single mask cannot be optimized for both [3]. This means that each mask would have to be inserted individually which is time consuming and impractical in a real world application. Thus a programmable aperture mask would be advantageous. Programmable masks have been used before but, due to their nature and technology, often produce worse images and results than conventional static masks. In Choi et al. [4], a liquid crystal array (LCA) was used as a transmissive coded aperture mask to allow for depth sensing from a conventional camera. The application was successful but the image quality was poor, due to diffraction and light loss caused by the Liquid crystal technology, and thus could not be used. Nagahara et al. [5] constructed a programmable aperture camera using a liquid crystal on silicon (LCoS) as the adaptive mask. This technology is similar to the LCA but is reflective rather than transmissive. They also experienced poor images as the LCoS needs advanced optics to use as an aperture and thus the system could not be perfected. Clearly another technology is needed as the adaptive mask. Nayar et al. [6] made use of a DMD for spatio-temporal exposure variation and advanced dynamic ranging. The results they achieved with the DMD were notable and thus this device will be tested in a coded aperture application to determine its merit. IV. DESIGN AND IMPLEMENTATION Fig. 1: Digital micro-mirror device reflecting rays of incident light in different directions [1]. Figure 1 illustrates incident light being reflected in one of two directions by each of the DMD mirrors. These devices can act as excellent spatial light modulators and thus the viability of using a DMD as a programmable aperture mask in an imaging system will be established. III. RELATED WORK This section details an overview of existing research related to the fields of digital image processing, coded apertures and computational photography. A brief summary is given into a selection of related work to provide a context for our development. Research in coded apertures has been ongoing for the past decade, with coded aperture masks shown to be far superior to traditional aperture masks in defocus deblurring and depth estimation. In Levin et al. [2], a novel aperture mask was developed to better extract depth from a single coded image. This was done using a conventional camera and lens with a coded mask cut out from cardboard and inserted There were several factors to consider before the adaptive coded aperture imaging system could be developed. This section details the design and development of the system. A. Optical Design In order to get the DMD to perform effectively as a coded aperture mask, one would need to get the DMD into the aperture plane of the camera or lens system. This is by no means a trivial task, as there are various factors to consider. The basic principal is to allow the DMD to control the amount of light energy that reaches the CCD without actually forming an image on the DMD itself. This is achieved by the use of lenses to collimate light from an object onto the DMD, which then directs light towards another lens that converges the light towards a charge coupled device (CCD) to capture the encoded image. Figure 2 illustrates how the DMD is introduced into the aperture plane of an imaging system. This setup could effectively allow any pattern to be displayed on the DMD and the corresponding image to be captured by the CCD.

Fig. 2: DMD optical imaging setup. B. Defocus Blur Defocus blur can simply be modelled as the convolution between a sharp image and a point spread function (PSF). Mathematically, f = x k +, (1) where f denotes a blur image, x is a sharp, in-focus image and k represents a blur kernel or PSF and is the white Gaussian noise present, modelled by a N (0, 2 ) distribution. We can take the Fourier transform of the above equation to get a frequency domain equivalent: F = X K +, (2) where F, X, K and are the Fourier transforms of f, x, k and respectively. We can see that the convolution in Equation 1 becomes multiplication in Equation 2, which is a standard property of the Fourier transform. Figure 3 shows the power spectra of different aperture patterns with respect to a conventional circular aperture as computed by [7]. This was done by taking the Fourier transform of the PSF for the various aperture masks and comparing the results graphically. Circular apertures have lots of zero crossings in the Fourier domain and this leads to loss of information when multiplied with a sharp image. The coded aperture masks, however, have few zero crossings, which leads to the preservation of spatial information, and therefore makes the deblurring process easier. C. Aperture Selection To accurately determine if the optical configuration of the DMD coded camera is accurate and effective, a coded aperture Fig. 3: Power Spectra comparison of different coded aperture patterns with respect to a circular aperture [7]. mask developed in Levin at al. [2] was selected and compared to that of a conventional circular aperture mask. It was shown in [2] that the coded mask developed was far superior to that of a conventional circular aperture in defocus deblurring. Thus if the results can be replicated using the developed DMD coded camera then indeed the optical configuration of the camera is correct. Figure 4 shows the difference in shape between the two aperture masks. Fig. 4: Two aperture masks used in defocus deblurring experiment. (a) Conventional circular aperture. (b) Coded aperture developed by [2]. These masks were generated on the DMD and the resultant

images were then captured and compared. D. Defocus Deblurring Since defocus blur can be seen simply as the convolution between a sharp image and a blur kernel, one can solve for the sharp image again by deconvolving the blurred image with the same point spread function used to blur the original sharp image. This PSF can simply be estimated using the camera and scene parameters and will resemble the shape of the aperture for objects out of the focal plane of the lens with the scale being a function of depth. E. Hardware Considerations The cost and the availability of the various components needed to implement the system played a big role in the final design. In the end, the system was implemented using two plano-convex lenses, a 1.3-mega-pixel monochrome camera and the Discovery D3000 kit which includes a 0.7 XGA digital light processing (DLP) device produced by Texas Instruments with a resolution of 1024 768. A DLP is essentially a DMD produced by Texas Instruments under a different name. These components were chosen either because they were cheap and easily available or already owned by the authors. This means that the components may not be the most suited for the design and thus the results achieved from this set-up would not be optimal. V. RESULTS This section presents the results of the imaging system implemented and the outcomes obtained from the experiments performed. A. System Configuration Using all the components as mentioned in section IV, a suitable DLP coded aperture camera was constructed that allowed for different aperture masks to be generated on the fly using the DLP. The resultant images could then be captured using the CCD camera. Figure 5 shows the layout of the various components in the design. B. Defocus Deblurring Results We can see the superiority of coded apertures compared to conventional circular apertures in defocus deblurring which is illustrated in Figure 6. Standard USAF 1951 and ISO 12233 resolution charts were displayed on a liquid crystal display (LCD) screen. Using the DLP coded camera, the images were captured using both a conventional circular aperture and a coded aperture developed by [2]. In Figure 6 (a) we see the raw image captured of the USAF 1951 chart using a circular aperture. In Figure 6 (b) we see the image deconvolved using a sparse prior algorithm developed by [2]. The result is an image with lots of ringing artefacts and minimal detail present. None of the vertical or horizontal bars are even slightly distinguishable from each other. However, in Figure 6 (c) we see the image captured using a coded aperture mask. Figure 6 (d) shows the image deconvolved but this time using the PSF of the coded mask. We see a much Fig. 5: DLP camera experimental setup. (a) Experimental setup with components labelled. (b) Direction of light rays travelling through system. better deconvolved image, with less ringing and the vertical and horizontal bars being easily distinguishable from each other. Some of the numbers on the side of the image are more visible and readable as compared to the image in Figure 6 (b). In Figure 7 (a) we see the raw image captured of the ISO 12233 chart using a circular aperture. The image is then deconvolved in Figure 7 (b). In Figure 7 (c) the same image is captured, this time using the coded mask. The deconvolved image is then shown in Figure 7 (d). We can see again that the coded mask is far superior to the conventional aperture for defocus deblurring as more detail and less ringing is present in the coded mask deconvolved image. VI. CONCLUSION AND FUTURE RESEARCH A. Summary of Results From the results obtained, it is clear that coded apertures are far superior to circular apertures for defocus deblurring. The introduction of a DLP into the aperture plane of a camera system was very effective. It allowed for coded aperture masks to be generated via software, rather than by having different aperture patterns cut from cardboard and inserted into the

Fig. 6: USAF 1951 resolution chart deblur experiment. (a) Image captured using DLP camera with a circular aperture (shown top left of image). (b) Deconvolved image with circular aperture. (c) Image captured using DLP camera and coded aperture (shown top right). (d) Deconvolved image with coded aperture. aperture plane of a lens. Although the deconvolved images do contain a certain level of noise, notable amounts of detail in the coded aperture image can be recovered as compared to the circular aperture image. Clearly high frequency information was preserved using the coded aperture mask and the images contain less ringing and other artefacts. Thus the DLP is effective as an adaptive coded aperture mask. B. Future Improvements Although only one coded mask was compared to a conventional aperture, the use of the DLP opens up the possibility to test several hundred different aperture shapes and patterns. These masks will be tested in the future to evaluate their effectiveness for different imaging applications. Since the DLP has very high frame rates and could effectively generate hundreds of patterns each second, this opens up the possibility to test non-binary coded aperture patterns by modulating the light that reaches the CCD sensor. The experiments presented in this paper made use of plano-convex lenses to produce images, however, other lenses such as achromatic doublet lenses will be investigated to see if they offer any improvement to the image quality. Images captured were also generated on an LCD screen, and future work will involve photographing real scenes. Fig. 7: ISO 12233 resolution chart deblur experiment. (a) Image captured using circular aperture. (b) Deconvolved image with circular aperture. (c) Image captured using coded aperture. (d) Deconvolved image with coded aperture. REFERENCES [1] Physics 155, Homework.uoregon.edu, 2016. [Online]. Available: http://homework.uoregon.edu/pub/class/155/out155/dt2.html. [Accessed: 12- May- 2016]. [2] Levin, R. Fergus, F. Durand and W. Freeman, Image and Depth from a Conventional Camera with a Coded Aperture, ACM Transactions on Graphics, vol. 26, no. 3, pp. 70-1 to 70-10, 2007. [3] C. Zhou and S. K. Nayar. What are Good Apertures for Defocus Deblurring? In IEEE International Conference on Computational Photography, Apr 2009. [4] S. Suh, C. Choi, D. Park and C. Kim, Efficient synthetic refocusing method from multiple coded aperture images for 3D user interaction, Computational Imaging XI, 2013. [5] H. Nagahara, C. Zhou, T. Watanabe, H. Ishiguro and S. Nayar, Programmable Aperture Camera Using LCoS, Kyushu University, Japan, 2016. [6] S. Nayar, V. Branzoi and T. Boult, Programmable imaging using a digital micromirror array, Proceedings of the 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2004. [7] B. Masia, A. Corrales, L. Presa and D. Gutierrez, Coded Apertures for Defocus Deblurring, In Symposium Iberoamericano de Computacion Grafica, Vancouver, 2011.