Image Zooming Using Wavelet Coefficients

Total Page:16

File Type:pdf, Size:1020Kb

Image Zooming Using Wavelet Coefficients IMAGE ZOOMING USING WAVELET COEFFICIENTS Dissertation submitted in partial fulfillment of the requirements for the award of degree of Master of Technology in Computer Science and Applications Submitted By Himanshu Jindal (Roll No. 651103003) Supervised By Dr. Singara Singh Assistant Professor SCHOOL OF MATHEMATICS AND COMPUTER APPLICATION THAPAR UNIVERSITY PATIALA – 147004 July 2014 CERTIFICATE I hereby certify that the work being presented in the dissertation entitled, "Image Zooming Using Wavelet Coefficients", in partial fulfillment of the requirements for the award of degree of Master of Technology in Computer Science and Applications submitted to the School of Mathematics and Computer Applications of Thapar University, Patiala, is a authentic record of my own work carried out under the supervision of Dr. Singara Singh and refers other researcher's work which are duly listed in the reference section. The matter presented in the dissertation has not been submitted for the award of any other desree of this or anv other university. _ .. \,. ->- PL*"*?irf t (Himanshu Jindal) This is to certify that the above statement made by the student is correct and true to the best of my knowledge. ffi1,, (Dr. Singara Singh) Assistant Professor, School of Mathematics and Computer Applications, Thapar University, Patiala Countersigned By - n r / /t I T" \^--Y H4W-- Dr. Rajesh Kumar Dr. S.K. Nlohdpatfa Head, Dean School of Mathematics and Computer Applications, (AcademicAffairs) Thapar University, Patiala Thapar University, Patiala ACKNOWLEDGMENT I would like to acknowledge everyone who supported me during my experience at Thapar University and my work on this dissertation. First and foremost I would like to thank God for providing me with faith, self-confidence and ability to complete the dissertation. It would be a great pleasure for me to acknowledge the guidance, assistance and help received from Dr. Singara Singh, Assistant professor, SMCA, Thapar Univeristy, Patiala. I am very grateful for his continual support, encouragement and invaluable suggestions. His enthusiasm and optimism made this experience both rewarding and encourageable. I extend my deep gratitude towards Dr. Rajesh Kumar, Head, SMCA, Thapar University, Patiala for providing the timely facilities and infrastructure that helped in completion of the dissertation. I would like to take this opportunity to express my sincere appreciation and thanks to my friends and family for their strong moral support and constant encouragement throughout this research. I am also thankful to all staff members of SMCA for their kind cooperation and sincere help. Ir 5;& W*urindar Roll No: 651103003 M.Tech (CSA) ABSTRACT The work in this dissertation involves an algorithmic approach to zoom a given image in wavelet domain and to get a sharper image using with various interpolation techniques. The exploration is an attempt to develop quantitative measures that can automatically predict perceived image quality. An objective image quality metric can play a variety of roles in image processing applications. First, it can be used to dynamically monitor and adjust image quality; second, it can be used to optimize algorithms and parameter settings of image processing systems. Second, it can be used to benchmark image processing systems and algorithms as zoomed images are sharper as compared to other methods. Hence keeping all this in mind on this source of information, Discrete Wavelet Transform (DWT) with various interpolation techniques had been applied upon variances to obtain their values. Performance is measured by calculating Peak Signal to Noise Ratio (PSNR), and the proposed method gives much better PSNR compared to other methods. This algorithm can help in medical science to get the minutest details for detection of cancer. iii TABLE OF CONTENTS Certificate........................................................................................................ i Acknowledgement........................................................................................... ii Abstract............................................................................................................ iii List of Figures……………………………………………………………...... vi List of Tables…………………………………………................................... vii Chapter I: Introduction …………………………………………….……....... 1-26 1.1 Introduction......................................................................................... 1 1.2 Image.................................................................................................... 1 1.3 Image Zooming.................................................................................... 3 1.3.1 Need of Zooming................................................................................. 4 1.4 Types of Zooming................................................................................ 5 1.4.1 Pixel Replication.................................................................................. 5 1.4.2 Interpolation........................................................................................ 7 1.4.2.1 Linear Interpolation...................................................................... 8 1.4.2.2 Bilinear Interpolation................................................................... 10 1.4.2.3 Bi-Cubic Interpolation.................................................................. 11 1.4.2.4 Nearest Neighbour Interpolation................................................... 12 1.5 Discrete Wavelet Transform................................................................ 13 1.5.1 Inverse Discrete Wavelet Transform................................................... 17 1.6 Types of Wavelets............................................................................... 17 1.6.1 Haar wavelets...................................................................................... 17 1.6.2 Daubechies wavelets........................................................................... 17 1.6.3 The Dual-Tree Complex Wavelet Transform...................................... 17 1.7 Properties of Discrete Wavelet Transform.......................................... 18 1.8 Time Complexity of Discrete Wavelet Transform.............................. 18 1.9 Applications of Discrete Wavelet Transform...................................... 18 1.10 Image Quality...................................................................................... 19 1.11 Image Quality Factors......................................................................... 20 1.12 Scanning Factors.................................................................................. 22 iv 1.13 Image Quality Parameters................................................................... 23 1.14 Conclusion........................................................................................... 26 Chapter II: Literature Survey …………………………………….……......... 27-39 2.1 Introduction.......................................................................................... 27 2.2 Literature Survey.................................................................................. 27 2.3 Conclusion........................................................................................... 38 Chapter III: Image Zooming Algorithm Using Wavelet Coefficients.......... 40-49 3.1 Introduction.......................................................................................... 40 3.2 Proposed Algorithm............................................................................. 40 3.3 Implementation.................................................................................... 40 3.4 Results.................................................................................................. 42 3.5 Comparison with Existing Algorithm……....……………………….. 48 3.6 Conclusion........................................................................................... 49 Chapter IV: Conclusion and Future Scope …………………….……........... 50 4.1 Conclusion........................................................................................... 50 4.2 Future Scope........................................................................................ 50 References …………………….……................................................................. 52 v LIST OF FIGURES FIGURE DESCRIPTION PAGE NO Figure 1.1 An image arranged in array of columns and rows 2 Figure 1.2(a) Pixel having various colors based on gray scale 2 Figure 1.2(b) Each pixel has value from 0 to 255 on gray scale 3 Figure 1.3 Image of a Rose 4 Figure 1.4 Zoomed image of rose 5 Figure 1.5 Pixel Replication 6 Figure 1.6 Original image of a Boy 6 Figure 1.7 Zoomed image of Boy 7 Figure 1.8 Output Image of bilinear interpolation 11 Figure 1.9 Output Image of bi-cubic interpolation 12 Figure 1.10 Output Image of nearest neighbour interpolation 13 Figure 1.11(a) First level decomposition showing subbands of DWT 14 Figure 1.11(b) Second level decomposition showing subbands of DWT 14 Figure 1.11(c) Third level decomposition showing subbands of DWT 14 Figure 1.12 Output image of DWT 16 Figure 3.1(a) Image of Football 41 Figure 3.1(b) Image of Airplane 41 Figure 3.1(c) Image of Baboon 41 Figure 3.1(d) Image of Tape 41 Figure 3.1(e) Image of Office 41 Figure 3.1(f) Image of Lena 41 Figure 3.1(g) Image of Onion 41 Figure 3.1(h) Image of Pears 41 Figure 3.1(i) Image of Peppers 41 Figure 3.1(j) Image of Sailboat 42 Figure 3.1(k) Image of Trees 42 Figure 3.1(l) Image of Canoe 42 Figure 3.2(a) Zoomed Image by 2 of Football 42
Recommended publications
  • A Comparative Analysis of Image Interpolation Algorithms
    ISSN (Online) 2278-1021 IJARCCE ISSN (Print) 2319 5940 International Journal of Advanced Research in Computer and Communication Engineering Vol. 5, Issue 1, January 2016 A Comparative Analysis of Image Interpolation Algorithms Mr. Pankaj S. Parsania1, Dr. Paresh V. Virparia2 Research Scholar, Department of Computer Science, Sardar Patel University, Vallabh Vidyanagar, Gujarat, India1 Director, Department of Computer Science, Sardar Patel University, Vallabh Vidyanagar, Gujarat, India2 Abstract: Image interpolation is the most basic requirement for many image processing task such as computer graphics, gaming, medical image processing, virtualization, camera surveillance and quality control. Image interpolation is a technique used in resizing images. To resize an image, every pixel in the new image must be mapped back to a location in the old image in order to calculate a value of new pixel. There are many algorithms available for determining new value of the pixel, most of which involve some form of interpolation among the nearest pixels in the old image. In this paper, we used Nearest-neighbor, Bilinear, Bicubic, Bicubic B-spline, Catmull-Rom, Mitchell- Netravali and Lanzcos of order three algorithms for image interpolation. Each algorithms generates varies artifact such as aliasing, blurring and moiré. This paper presents, quality and computational time consideration of images while using these interpolation algorithms. Keywords: Nearest-neighbor, Bilinear, Bicubic, Bicubic B-spline, Catmull-Rom, Mitchell-Netravali, Lanzcos. I. INTRODUCTION Image interpolation is a term used for image processing, Interpolation using Shape-Preserving Approach [4], but is often used with different terminologies in literature classification and stitching [5], grid based image like image scaling, image resampling and image resize.
    [Show full text]
  • University of California, San Diego
    UNIVERSITY OF CALIFORNIA, SAN DIEGO Pattern Recognition Techniques for Image and Video Post-Processing: Speci¯c Application to Image Interpolation A dissertation submitted in partial satisfaction of the requirements for the degree Doctor of Philosophy in Electrical and Computer Engineering by Karl S. Ni Committee in charge: Professor Truong Q. Nguyen, Chair Professor Yoav Freund Professor Gert Lanckriet Professor William Hodgkiss Professor Nuno Vasconcelos 2008 Copyright Karl S. Ni, 2008 All rights reserved. The dissertation of Karl S. Ni is approved, and it is acceptable in quality and form for publication on micro¯lm: Chair University of California, San Diego 2008 iii To My Family. I owe you everything. The true path of success is paved by diligence inspired by passion. |Unknown iv TABLE OF CONTENTS Signature Page . iii Table of Contents . v List of Figures . viii List of Tables . x Acknowledgements . xi Vita and Publications . xiv Abstract . xvi 1 Introduction . 1 1.1 Towards a Shift in Computational Focus . 3 1.2 Image Interpolation . 7 1.3 Focus of This Work . 7 2 Background . 9 2.1 Non-statistical Superresolution Methods . 10 2.2 Learning-Based Superresolution Methods . 11 3 Image Patch-Based Distribution . 15 3.1 A Distribution Model for Image Patches . 17 3.2 Empirical Justi¯cation . 18 3.3 Using the Proposed Model . 22 3.4 Implications in Di®erent Domains . 23 3.5 On the Variability of Finite Data Sets . 27 3.6 Results . 27 3.7 Summary . 30 3.8 Acknowledgements . 30 4 Adaptive k-Nearest Neighbor for Image Interpolation . 31 4.1 Review of k-Nearest Neighbor for Regression .
    [Show full text]
  • Extensible Implementation of Reliable Pixel Art Interpolation
    F O U N D A T I O N S O F C O M P U T I N G A N D D E C I S I O N S C I E N C E S Vol. 44 (2019) No. 2 ISSN 0867-6356 DOI: 10.2478/fcds-2019-0011 e-ISSN 2300-3405 Extensible Implementation of Reliable Pixel Art Interpolation Paweł M. Stasik, Julian Balcerek ∗ y Abstract. Pixel art is aesthetics that emulates the graphical style of old computer systems. Graphics created with this style needs to be scaled up for presentation on modern displays. The authors proposed two new modifications of image scaling for this purpose: a proximity-based coefficient correction and a transition area restriction. Moreover a new interpolation kernel has been introduced. The presented approaches are aimed at reliable and flexible bitmap scaling while overcoming limitations of exist- ing methods. The new techniques were introduced in an extensible .NET application that serves as both an executable program and a library. The project is designed for prototyping and testing interpolation operations and can be easily expanded with new functionality by adding it to the code or by using the provided interface. Keywords: image processing, pixel art, image upscaling, bitmap interpolation, proximity measure, proximity-based coefficient correction (PBCC), p-lin interpola- tion, transition area restriction (TAR) 1. Introduction Old computer systems, in comparison to modern systems, were heavily restricted in their graphical capabilities (in the sense of the amount of available colors and the possible resolutions). Pixel art is an artistic form that was aimed at handling these limitations, but them should not prevent it from being presented with graphical possibilities of the modern systems.
    [Show full text]
  • Linear Methods for Image Interpolation Pascal Getreuer CMLA, ENS Cachan, France ([email protected])
    Published in Image Processing On Line on 2011{09{27. Submitted on 2011{00{00, accepted on 2011{00{00. ISSN 2105{1232 c 2011 IPOL & the authors CC{BY{NC{SA This article is available online with supplementary materials, software, datasets and online demo at http://dx.doi.org/10.5201/ipol.2011.g_lmii 2014/07/01 v0.5 IPOL article class Linear Methods for Image Interpolation Pascal Getreuer CMLA, ENS Cachan, France ([email protected]) Abstract We discuss linear methods for interpolation, including nearest neighbor, bilinear, bicubic, splines, and sinc interpolation. We focus on separable interpolation, so most of what is said applies to one-dimensional interpolation as well as N-dimensional separable interpolation. Source Code The source code (ANSI C), its documentation, and the online demo are accessible at the IPOL web page of this article1. Keywords: interpolation; linear methods; separable interpolation 1 Introduction Given input image v with uniformly-sampled pixels vm;n, the goal of interpolation is to find a function u(x; y) satisfying vm;n = u(m; n) for all m; n 2 Z; such that u approximates the underlying function from which v was sampled. Another way to interpret this is consider that v was created by subsampling, and interpolation attempts to invert this process. We discuss linear methods for interpolation, including nearest neighbor, bilinear, bicubic, splines, and sinc interpolation. We focus on separable interpolation, so most of what is said applies to one-dimensional interpolation as well as N-dimensional separable interpolation. 2 Notations We use the following normalization of the Fourier transform, Z 1 f^(ξ) = f(x)e−2πixξdx; −∞ the transform of a function f is denoted by hat.
    [Show full text]
  • 3D LANCZOS INTERPOLATION for MEDICAL VOLUMES Thiago
    15th International Symposium on Computer Methods in Biomechanics and Biomedical Engineering and 3rd Conference on Imaging and Visualization CMBBE 2018 P. R. Fernandes and J. M. Tavares (Editors) 3D LANCZOS INTERPOLATION FOR MEDICAL VOLUMES Thiago Moraes1, Paulo Amorim1, Jorge Silva1 and Helio Pedrini2 1Division of 3D Technologies, Center for Information Technology Renato Archer Campinas-SP, Brazil, 13069-901 2Institute of Computing, University of Campinas Campinas, SP, Brazil, 13083-852 Keywords: Image Interpolation, Resampling, Medical Imaging. Abstract: Medical imaging techniques have been widely used in the diagnosis and treatment of many diseases, such as magnetic resonance imaging, computed tomography, mammography, ultrasonography, and photon emission tomography. Their main purpose is to enable the visu- alization of internal anatomic structures, such as organs and tissues, for clinical procedures. Resampling is required for certain medical tasks, for instance, registration and reconstruction, which occur when images or volumes are scaled, translated or rotated. The result of the re- sampling depends on the interpolation filter. In this paper, we develop and analyze a novel three-dimensional Lanczos resampling method in the context of medical imaging. 1. INTRODUCTION In the context of numerical analysis, interpolation techniques [12–15, 19, 21–23] aim to con- struct new data points from a set of known samples. In the field of image analysis, resampling techniques [9, 21, 23] transform a sampled image from one coordinate system to another. Resampling is typically employed to create a new version of an image with a different dimension. The increase and reduction of an image are called upsampling and downsampling, respectively. Image interpolation and resampling techniques play an important role in several biomed- ical applications, such as data reslicing, image registration, tomographic reconstruction, and volumetric rendering [23].
    [Show full text]