Notes on Photoshop s Defect in Simulation of Global Motion-Blurring

Similar documents
Binary Histogram in Image Classification for Retrieval Purposes

A Generalized Mandelbrot Set Based On Distance Ratio

Image Restoration. Yao Wang Polytechnic Institute of NYU, Brooklyn, NY 11201

Module 7 VIDEO CODING AND MOTION ESTIMATION

Image Classification for JPEG Compression

Non-Blind Deblurring Using Partial Differential Equation Method

Visualization and Analysis of Inverse Kinematics Algorithms Using Performance Metric Maps

Computationally Efficient Serial Combination of Rotation-invariant and Rotation Compensating Iris Recognition Algorithms

Using Perspective Rays and Symmetry to Model Duality

Development of system and algorithm for evaluating defect level in architectural work

Transformation of curve. a. reflect the portion of the curve that is below the x-axis about the x-axis

Learn About Design Principles AND COPYRIGHT RULES

Homework #1. Displays, Alpha Compositing, Image Processing, Affine Transformations, Hierarchical Modeling

Mouse Pointer Tracking with Eyes

Embedded Rate Scalable Wavelet-Based Image Coding Algorithm with RPSWS

Deduction and Logic Implementation of the Fractal Scan Algorithm

Multi-Level Overlay Techniques for Improving DPL Overlay Control

AN ALGORITHM USING WALSH TRANSFORMATION FOR COMPRESSING TYPESET DOCUMENTS Attila Fazekas and András Hajdu

Film Line scratch Detection using Neural Network and Morphological Filter

Homework #1. Displays, Image Processing, Affine Transformations, Hierarchical Modeling

A Disk Head Scheduling Simulator

Leveraging Transitive Relations for Crowdsourced Joins*

A New Feature Local Binary Patterns (FLBP) Method

Garbage Collection (2) Advanced Operating Systems Lecture 9

A General Sign Bit Error Correction Scheme for Approximate Adders

A Reliable B-Tree Implementation over Flash Memory

CS 787: Assignment 4, Stereo Vision: Block Matching and Dynamic Programming Due: 12:00noon, Fri. Mar. 30, 2007.

Statistical image models

Color Image Segmentation Editor Based on the Integration of Edge-Linking, Region Labeling and Deformable Model

AUV Cruise Path Planning Based on Energy Priority and Current Model

Accurately measuring 2D position using a composed moiré grid pattern and DTFT

A Video Optimization Framework for Tracking Teachers in the Classroom

Visible and Long-Wave Infrared Image Fusion Schemes for Situational. Awareness

A Comparative Study & Analysis of Image Restoration by Non Blind Technique

FAST REGISTRATION OF TERRESTRIAL LIDAR POINT CLOUD AND SEQUENCE IMAGES

Scanner Parameter Estimation Using Bilevel Scans of Star Charts

Texture Image Segmentation using FCM

Refined Measurement of Digital Image Texture Loss Peter D. Burns Burns Digital Imaging Fairport, NY USA

Creating an Automated Blood Vessel. Diameter Tracking Tool

Massachusetts Institute of Technology Department of Computer Science and Electrical Engineering 6.801/6.866 Machine Vision QUIZ II

Minimum Bounding Boxes for Regular Cross-Polytopes

Time Stamp Detection and Recognition in Video Frames

A New Technique of Extraction of Edge Detection Using Digital Image Processing

Buxton & District U3A Digital Photography Beginners Group Lesson 6: Understanding Exposure. 19 November 2013

An Approach for Reduction of Rain Streaks from a Single Image

Image Restoration by Revised Bayesian-Based Iterative Method

animation, and what interface elements the Flash editor contains to help you create and control your animation.

Register allocation. CS Compiler Design. Liveness analysis. Register allocation. Liveness analysis and Register allocation. V.

CONTENT ADAPTIVE SCREEN IMAGE SCALING

Study on Gear Chamfering Method based on Vision Measurement

Kinect Cursor Control EEE178 Dr. Fethi Belkhouche Christopher Harris Danny Nguyen I. INTRODUCTION

Sung-Eui Yoon ( 윤성의 )

Use of Shape Deformation to Seamlessly Stitch Historical Document Images

Improvement of SURF Feature Image Registration Algorithm Based on Cluster Analysis

Prediction-based Directional Search for Fast Block-Matching Motion Estimation

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

Multimedia Technology CHAPTER 4. Video and Animation

2. On classification and related tasks

Analysis of TFT-LCD Point Defect Detection System Based on Machine Vision

Animating the Page IN THIS CHAPTER. Timelines and Frames

Intelligent Computer Room Management Platform Based on RF Card

Image Sampling and Quantisation

Ray Tracing. Foley & Van Dam, Chapters 15 and 16

Ray Tracing Foley & Van Dam, Chapters 15 and 16

DYADIC WAVELETS AND DCT BASED BLIND COPY-MOVE IMAGE FORGERY DETECTION

Rapid Modeling of Digital City Based on Sketchup

Image Sampling & Quantisation

Visualizing Flow Fields by Perceptual Motion

Unit 1, Lesson 1: Moving in the Plane

Edge Equalized Treemaps

Integrating the Generations, FIG Working Week 2008,Stockholm, Sweden June 2008

Stripe Noise Removal from Remote Sensing Images Based on Stationary Wavelet Transform

Shutter Control. Photography Technology I

Sobel Edge Detection Algorithm

BCC Optical Stabilizer Filter

RECOGNIZING TYPESET DOCUMENTS USING WALSH TRANSFORMATION. Attila Fazekas and András Hajdu University of Debrecen 4010, Debrecen PO Box 12, Hungary

General Purpose GPU Programming. Advanced Operating Systems Tutorial 9

Help For TorontoMLS. Report Designer

Vision-based Frontal Vehicle Detection and Tracking

Fault Class Prioritization in Boolean Expressions

Box-Cox Transformation for Simple Linear Regression

Binju Bentex *1, Shandry K. K 2. PG Student, Department of Computer Science, College Of Engineering, Kidangoor, Kottayam, Kerala, India

Research on QR Code Image Pre-processing Algorithm under Complex Background

(Refer Slide Time: 0:51)

APPLICATION OF RADON TRANSFORM IN CT IMAGE MATCHING Yufang Cai, Kuan Shen, Jue Wang ICT Research Center of Chongqing University, Chongqing, P.R.

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

Blind Image Deconvolution Technique for Image Restoration using Ant Colony Optimization

ADOBE 9A Adobe After Effects 7.0 Professional ACE.

A Fast Image Multiplexing Method Robust to Viewer s Position and Lens Misalignment in Lenticular 3D Displays

Open Access The Three-dimensional Coding Based on the Cone for XML Under Weaving Multi-documents

DIFFRACTION 4.1 DIFFRACTION Difference between Interference and Diffraction Classification Of Diffraction Phenomena

The 2D Fourier transform & image filtering

Image and Video Quality Assessment Using Neural Network and SVM

Ray tracing. EECS 487 March 19,

FPGA-based Real-time Super-Resolution on an Adaptive Image Sensor

Optical Flow Estimation with CUDA. Mikhail Smirnov

Automatic Generation of Graph Models for Model Checking

Max scene used to generate the image from the second pdf in this tutorial.

Removing Atmospheric Turbulence

Transcription:

Notes on Photoshop s Defect in Simulation of Global Motion-Blurring Li-Dong Cai Department of Computer Science, Jinan University Guangzhou 510632, CHINA ldcai@21cn.com ABSTRACT In restoration of global motion-blurred images, simulated blur images play an important role in the test of algorithms and assessment of quality. Photoshop is a popular tool to generate such simulated images. However, the motion-blur images produced directly by Photoshop may sometimes fail in image restoration. An analysis, with reference to the physical process of image formation, is thus made to find the root of the defect and to explain why periodic waves always appear within failed restorations. A pre-processing is then proposed to solve this problem by zero-padding the marginal scene areas in a width proportion to the motion distances. Experimental results show that by this pre-processing the defect of loss of motion information is precluded from the output simulated images, thus being qualified to use in motion-deblurring. Keywords motion-blur, Photoshop, simulation, defect, zero-padding. 1. INTRODUCTION Motion may lead to an image blur during its formation. It is mainly caused by the relative motion between the camera and the scene, making the instantaneous exposure overlapped on a film over the time interval during which the shutter is open. And the image blur caused by camera s shifting is called global motion blur, for which there are many methods to do the restoration job [Gon, Son, Lim]. Usually, the original version of a scene image is unknown to restoration. This brings inconvenience to the testing of restoration algorithms as well as the quality assessment of restored images. Simulation of blur images is thus needed to produce the common test data where original images are always known. To do so, the software which produces simulated motion-blur images should satisfy four requirements as follows: 1) be universal and popular; 2) can treat various images; 3) only the motion parameters Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Copyright UNION Agency Science Press, Plzen, Czech Republic. (direction and distance) are needed to generate a blur image; 4) be independent to image de-blurring methods. Among numerous software of image processing, Photoshop is a widely used one satisfying the above requirements. It is a convenient and parameterized toolkit in simulation of motion-blur images; and as a source code encapsulated business software, its image blurring algorithm is a black box for all users, hence being fair to every restoration algorithm. 2. DEFECT IN PHTOSHOP S RESULT According to Photoshop s user guide, only two motion parameters, the directionθ and distance D are needed to produce simulated motion-blur images. These images look pretty well for the purpose of watching, but will sometimes produce puzzling results when they are taken as the input for restoration, and things get apparent when the restoration is made using the Traveling Wave Deblurring (TW method [Cai]. As shown in Figures 1 to 3, these results can be roughly classified into three different cases: Case 1: For scene images consists of a non-zero background and a central object (see Figure 1a), periodic waves appear in the restored version of the simulated blur images (see Figure.1c).

(a) original (left lined) (a) Original scene Figure 1: A scene of complex background and central object, Photoshop s motion blur simulation and an unsuccessful restored image, Case 2: For scene images consist of a zero background and a central object (see Figure 2a), the simulated blur images are always restored successfully (see Figure.2c), (a) original scene Figure 3: A scene of zero background and marginal object, Photoshop s motion-blur simulation and an unsuccessful restored image, These inconsistent results give people an impression that image restoration s success and failure could be content-dependent. For instance, Case 1 and 2 together suggest that the restored results are related to non-singleness of the background; Case 2 and 3 together suggest that the restored results are related to the composition of marginal areas in images; and Case 1, 2 and 3 altogether suggest that the restored results are related to the non-single composition of marginal areas in images. However, note that in the case of global motion, what an image undergoes is a rigid movement, therefore all the pixels have the equal status. So, the above suggestions are plausible, the real reason for appearing these inconsistent restored results is not due to the differences between scene images, but due to possible defects in the process of producing a simulated image. Figure 2: A scene of zero background and central object, Photoshop s motion-blur simulation and the successful restored image, Case 3: For scene images consists of a zero background and a marginal object (see Figure 3a), periodic waves appear again in the restored version of the simulated blur images (see Figure.3c), 3. ANALYSIS OF PHOTOSHOP S DEECT IN SIMULATION For simplicity, 1-dimensional case is discussed. Suppose that a scene image f (, viewed through a window, is of an even intensity distribution, L in length, and with a horizontal moving ratev towards right; its images f ( x vt) at different instances t during the exposure time interval [ 0, T] overlap together and form the motion-blurred image g ~ ( x ) : g ~ ( = T 0 f ( x vt) dt (1) with an intensity distribution as shown in Figure 4 below:

Figure 4: Moving images f( x vt) overlap together and form a motion-blurred image g ~ ( x ). Let the motion distance D = vt, then the length of the blurred image will be L + D, i.e., the global motion leads to the blurred image g ~ ( x ) being longer than the original scene image f (. However, the simulated (blurred) image g ˆ( output by Photoshop maintains the same size L. So, Photoshop must have made a re-location and/or a cutting to the blurred image according to the motion distance D. As the source code of Photoshop is encapsulated, the internal forms of re-location and cutting are unknown to users, so judgment of them has to be made only based on their external behavior in experiment. For example, draw a one-pixel thick,vertical line at the center of a blank background as the scene image, then make it motion-blurred with different shifting values, Photoshop s behavior in re-location and cutting can be observed by a comparison of a specific object s position in the scene image and the simulated image. (a) 5pixels shift (b) 10pixels (c) 15 pixels (d) 20pixels Figure 5: Motion-blurred images resulting directly from Photoshop s simulation for the same vertical central line with different shifts. As shown in Figure 5, for different shifting values, each blurred line maintains its center position invariant. This means that when the distance of a forward motion is D = vt, Photoshop will shift the blurred image g ~ ( x ) 0.5D backward so as to ensure the blurred image s center maintains at the window s center. So the blurred image is now 0.5D excess beyond the window at both sides, and they will be cut out before the image is output as simulated image. Therefore, motion information within both image margins is thus possible to be lost, leading to failure of image restoration. With this observation, a reasonable explanation to Cases 1, 2 and 3 is now available by appealing to the Traveling Wave Deblurring, where the scene image satisfies the so-called recursion equation [Cai] below: = v + f ( x (2) with its different forms over sub-intervals of [ 0, L+ D] : = v 0 x < D (3) = v + f ( x D x < L (4) f ( x = v L x L + D (5) = 0 else (6) Note that in order to output a simulated blurred image g ˆ(, Photoshop needs to re-locate the blurred image g ~ ( x ),cut out both sides 0.5 D each. This is actually equivalent to zero-padding the blurred image there g ~ ( 0, 0 x 0.5 D L+ 0. 5D x L+ D (7) So, the restoration to the simulated image g ˆ( is in fact a computation to the zero-padded. blurred image. From Eq. (3), (5), there must be: g ~ f( = ± v 0, 0 x< 0.5 D L 0. 5D x L (8) Therefore, different results will appear in Cases 1, 2 and 3 above: 1) For any motion-blurred image g ~ ( x ) which results from a scene image composed of a complex

background and a central object as shown in Figure 1a,there will be g ~ ( const in both 0.5D width margins, hence 0. But this is in contradiction with Photoshop s zero-padding result, = 0 as presented by Eq. (8), and will bring forwards errors into consequent recursions, thus leading to failure of image restoration. 2) For any motion-blurred image g ~ ( x ) which results from a scene image composed of a unitary (zero) background and a central object as shown in Figure 2a, because the overlapping of zero background creates nothing but zero background in both 0.5D width margins. It is true from the beginning, that g ~ ( = 0 hence = 0. Therefore, Photoshop s zero-padding brings no effect to producing a proper simulated image as long as the width of zero background is not less than 0.5D at both margins of the motion-blurred image, and a successful restoration can be expected. 3) For any motion-blurred image g ~ ( x ) which results from a scene image composed of a unitary (zero) background and a marginal object as shown in Figure 3a, because the width of zero background at both margins is less than 0.5D, the situation is similar to Case 1, i.e., there exists g ~ ( cons, thus 0, and image restoration will fail. However, image restoration can succeed as long as the width of zero background at both margins is adjusted to 0.5D as shown in Figure 6. (a) left margin is 10 pixels (b) blurred ( D=20 pixels) (c) restored image Figure 6. So long as the left margin expands to 0.5D=10 pixels in width, deblurring of simulated image succeeds..as for the phenomenon of periodic waves always appearing in the failed restoration, it is not difficult to make a similar and reasonable explanation. Let both cut-out margins of the blurred image g ~ ( x ) be δ ( x ) > 0, x [0,0.5 [ L+ 0.5 D, L+, then extend it to δ ( = 0, x [ 0.5 D, L+ 0.5 so that the simulated image gˆ ( = g~ ( δ( x [ 0, L+. Therefore, from Eq. (3), the restored result of gˆ ( over 0 x < D can be seen as that of the sum of g ~ ( x ) and δ( : δ = v v 0 x < 0.5D = v 0.5D x < D (3 ) Afterwards, according to Eq. (4), the influence of δ( will be introduced into f ( over [ D, L] with a period of D, making the cut-out left margin present in a white and black reversed waving texture till x = L where the processing of whole simulated image finishes. 4. DEFECT PRECLUSION BY ZERO- PADDING The discussion so far shows that simulated motionblurred images resulting directly from Photoshop are not always qualified for testing of algorithms. Restoration of these images sometimes fails for the reason that while motion-blurring makes an image be larger, Photoshop s re-location and cutting treatment are used to retain the image size, and this puts the image at the risk of losing the motion information in marginal areas for image restoration. To deal with this situation, the simplest way is to directly take the motion-blurred image as the simulated image without any cutting. This means that the simulated image no longer keeps the same size to that of the input image, and will change size from time to time corresponding to the motion distance. Therefore, it is not only troublesome to do but also no way to do, since this will involve the revision of Photoshop s source code though users have no access to those encapsulated code, let alone to change it. Note that the simulated image g ˆ( is a 0.5D margincut version of the blurred image g ~ ( x ), and according to Eq. (8), such a cut is equivalent to a 0.5D zeropadding to both margins of the original scene image f (. If both image margins of f ( are set to zero in 0.5D width from the beginning, then there will be actually no loss of motion information in the

simulated image, thus being qualified to be used in image restoration. Therefore, given the simulated motion distance D, an effective pre-processing which is consistent with Photoshop s re-location and zero-padding, is first to make a 0.5D zero-padding at both margins of the scene image, then use Photoshop to do motion blurring so as to produce a simulated image in the same size. An example is shown in Figure 7aa, where a zeropadding pre-processed scene image is in content a zero-padding version of the original scene image. When it is used as the input to Photoshop s simulation for motion-blurring, there is no loss of motion information in the output image, thus being a qualified simulated image as desired in both appearance and application qualified simulated version of motion-blurred image is properly produced. 5. SUMMARY Motion blur images resulting directly from Photoshop s simulation may sometimes fail in image restorations, thus being not qualified to be used for testing of algorithms or performance assessment. This paper first exposes that this defect has its root in information loss caused by Photoshop s re-location and cutting of the motion-blurred image; then explains why periodic waves always appear when image restoration fails; and proposes to apply a certain width zero-padding to both margins of a scene image as a pre-processing of Photoshop s treatment. Experimental results show that by this pre-processing; motion blur images generated by Photoshop s simulation are now qualified to be used in motion-deblurring. (a) original scene image (aa) zero-padded version (b) motion-blurred (20 pixels) (c) restored Figure 7: With a 0.5D zero-padding at both margins as the pre-processing for Photoshop s treatment, a 6. REFERENCES [Gon] R.C. Gonzalez and P.Wintz, Digital Image Processing (2 nd Edition), Academic Press, New York, USA, 1987. [Son] M. M. Sondi, Image restoration:the removal of spatially invariant degradations. Proceedings of IEEE, 1972, 60 (7):828 842. [Lim] H. Lim and B T G Tan, Restoration of real world motion blurred images. CVGIP, 1991, 5 3 (2):291 299. [Cai] L.-D. Cai, Traveling Wave Equations and Restoration of Motion-Blurred Images. ACTA AUTO-MATICA SINICA, Vol. 29, No.3, May, 2003, pp. 466-471.