IMPLEMENTATION OF DIAMOND SEARCH (DS) ALGORITHM FOR MOTION ESTIMATION USING MATLAB SITI HAJAR BINTI AHMAD

Similar documents
BORANG PENGESAHAN STATUS TESIS

BORANG PENGESAHAN STATUS TESIS

DEVELOPMENT OF VENDING MACHINE WITH PREPAID PAYMENT METHOD AMAR SAFUAN BIN ALYUSI

DESIGN ANALYSIS OF EXTERIOR CAR BODY PART BASTIAN WIBAR BIN MOMANG

UNIVERSITI MALAYSIA PAHANG BORANG PENGESAHAN STATUS TESIS

PERFORMANCE EVALUATION OF LEACH PROTOCOL FOR WIRELESS SENSOR NETWORKS USING NS2 MUHAMAD FAIZ BIN RAMDZAN

PREDICTION OF SURFACE ROUGHNESS IN TURNING OPERATION OF LOW CARBON STEEL AISI 1018 FAKHRUR RAZI BIN BAHRIN UNIVERSITI MALAYSIA PAHANG

HOME APPLIANCE CONTROL SYSTEM TAN WEI SYE

AN ANDROID-BASED SMART SECURITY TOURING SYSTEM FOR REAL-TIME DATA RECORDING USING NFC, GPS AND GSM TECHNOLOGY.

THE APPLICATION OF DIFFERETIAL BOX-COUNTING METHOD FOR IRIS RECOGNITION AHMAD AZFAR BIN MAHMAMI

BORANG PENGESAHAN STATUS TESIS* TERHAD (Mengandungi maklumat TERHAD yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan)

COORDINATION PROTECTION SYSTEM IN INDUSTRIAL PLANTS AHMAD TARMIZI BIN MD NOR

ZIGBEE-BASED SMART HOME SYSTEM NURUL ILMI BINTI OMAR

UPGRADE FMS200: SHAFT SUPPLY MODULE THOUGH HUMAN MACHINE INTERFACE LEE HO CHUNG

PERFORMANCE ANALYSIS OF VIDEO TRANSMISSION OVER IEEE ARCHITECTURE NOOR HURUL-AIN BINTI MOHAMAD

PROTOTYPE OF POWER LINE INTERFACE SOCKET USING EMBEDDED CONTROLLER FOR DATA ACQUISITION AND CONTROL. LAI CHING HUAT

WEB-BASED DEVICE CONTROL AND COMMUNICATION VIA PARALLEL PORT MOHD RASHDAN BIN ABD RAHMAN UNIVERSITI TEKNIKAL MALAYSIA MELAKA

TUITION CENTRE MANAGEMENT SYSTEM (TCMS) ZARIFAH BINTI MOHD PAHMI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

HOME APPLIANCES MONITORING AND CONTROL USING SMARTPHONE APPLICATION AHMAD DANIAL BIN AHMAD NAZRI

BORANG PENGESAHAN STATUS TESIS

VIDEO DISTORTION MEASUREMENT USING PSNR IN WAVELET DOMAIN MOK YUNG LENG

SMART BODY MONITORING SYSTEM MOHAMAD KASYFUL AZIM BIN AHMAD

SESSION BASED ACTIVITY MONITORING APPLICATION FOR ANDROID TAN LEIK HO

SYSTEM MANAGEMENT AQIQAH AND QURBAN ONLINE (SMAQO)

SMART PARKING SYSTEM USING LABVIEW MUHAMMAD NAZIR BIN MAT ISA

NUR FARAH DIYANA BINTI SABARUDIN

LOW COST MP3 PLAYER USING SD CARD KHAIRIL AMRI BIN MUHAMAD UNIVERSITI TEKNIKAL MALAYSIA MELAKA

AUTO SILENT MODE FOR ANDROID SMARTPHONES MUHAMMAD AZLAN SHAHARIMAN BIN AHMAD

KARAOKE MACHINE TOOL MOHD AIEZATT DANIAL B RAMIZAN

PLC APPLICATION FOR FLOOD DETECTION AND PROTECTION VIA COMMUNICATION SYSTEM MOHD AKMAL BIN ZAINAL ABIDIN

DESIGN OF ENERGY SAVING AIR CONDITIONING CONTROL SYSTEM MOHD KHUZAIRIE BIN MOHD TAUFIK

HOME APPLIANCES AND SECURITY CONTROLLED VIA GSM SYSTEM NUR SYAFIQAH BINTI YUSOP

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

REMOVING AL-QURAN ILLUMINATION AMIRUL RAMZANI BIN RADZID UNIVERSITI TEKNIKAL MALAYSIA MELAKA

BORANG PENGESAHAN STATUS TESIS*

PROJECT TITLE JARIPAH BINTI ADZHAR

COMPARATIVE STUDY BETWEEN FEATURE EXTRACTION METHODS FOR FACE RECOGNITION

DEVELOPMENT OF HOME ENERGY MANAGEMENT SYSTEM (HEMS) CHEA MENG HUAT UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SIT1 NURI-IAZA BINTI MOHD RAMLI

DEVELOPMENT OF TIMETABLING PROGRAM FONG WOON KEAT

Study of Distributed Coordination Function (DCF) and Enhanced DCF (EDCF) in IEEE MAC Protocols for Multimedia Applications.

IMPROVED IMAGE COMPRESSION SCHEME USING HYBRID OF DISCRETE FOURIER, WAVELETS AND COSINE TRANSFORMATION MOH DALI MOUSTAFA ALSAYYH

BORANG PENGESAHAN STATUS TESIS JUDUL: TAILOR SYSTEM (TailorSys) (HURUF BESAR)

Performance of Real Time Traffic In The Ethernet And WLAN Using TCP And UDP Protocols. Punitha Subbramaniam

NUR ZURAIN BT ZUBAIDI B

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

THE DEVELOPMENT OF MODULAR PRODUCT DESIGN: FOLDABLE CHAIR

BORANG PENGESAHAN STATUS TESIS*

EDUCATION PATH SYSTEM MOHD ZULHAFIZ BIN HUSSIN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA OPTIMIZATION OF MEASUREMENT PARAMETERS IN NON- CONTACT MEASURING SYSTEM

UNIVERSITI TEKNOLOGI MALAYSIA

FORCE ANALYSIS ON ROBOTIC DEBURRING PROCESS

HARDWARE/SOFTWARE SYSTEM-ON-CHIP CO-VERIFICATION PLATFORM BASED ON LOGIC-BASED ENVIRONMENT FOR APPLICATION PROGRAMMING INTERFACING TEO HONG YAP

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

AUTOMATIC RAILWAY GATE CONTROLLERUSING ZIGBEE NURLIYANA HAZIRAH BINTI MOHD SAFEE (B )

2D CUT-OUT ANIMATION "MAT TUNANGKU"

COLOUR IMAGE WATERMARKING USING DISCRETE COSINE TRANSFORM AND TWO-LEVEL SINGULAR VALUE DECOMPOSITION BOKAN OMAR ALI

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

7 I I, BORANG PENGESAHAN STATUS TESIS* SESI PENGAnAN: 2012 I Saya MOHD FARID BIN MOHD YUSOF (B )

OPTIMIZE PERCEPTUALITY OF DIGITAL IMAGE FROM ENCRYPTION BASED ON QUADTREE HUSSEIN A. HUSSEIN

PERPUSTAKAAN UTHM *

FINITE ELEMENT ANALYSIS OF SEEPAGE FLOW UNDER A SHEET PILE LOH LING PING

HOME MAILBOX NOTIFICATION MOHD HAZWAN BIN MOHAMED HARITH

INTEGRATION OF CUBIC MOTION AND VEHICLE DYNAMIC FOR YAW TRAJECTORY MOHD FIRDAUS BIN MAT GHANI

MD RIDZUAN BIN TALIB DESIGN A MULTI-FUNCTION DIGITAL THERMOMETER

SUPERVISED MACHINE LEARNING APPROACH FOR DETECTION OF MALICIOUS EXECUTABLES YAHYE ABUKAR AHMED

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Faculty of Electronics and Computer Engineering

ISOGEOMETRIC ANALYSIS OF PLANE STRESS STRUCTURE CHUM ZHI XIAN

HIGH SPEED SIX OPERANDS 16-BITS CARRY SAVE ADDER AWATIF BINTI HASHIM

ELECTROMAGNETIC MODELLING OF ARTIFICIAL PACEMAKER. Emelia Anak Gunggu

PROCESS AND YIELD IMPROVEMENT FOR HSDPA MODEM COLLABORATION WITH CUBIC ELECTRONICS SDN BHD NORUL HUSNA BINTI KHOLIAH

THE COMPARISON OF IMAGE MANIFOLD METHOD AND VOLUME ESTIMATION METHOD IN CONSTRUCTING 3D BRAIN TUMOR IMAGE

PERFORMANCE ANALYSIS OF SMARTPHONE BASED REAL-TIME DRIVER ASSIST SYSTEM OVER IEEE WIRELESS NETWORKS WONG CHEE YIN

This item is protected by original copyright

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

IMPLEMENTATION OF UNMANNED AERIAL VEHICLE MOVING OBJECT DETECTION ALGORITHM ON INTEL ATOM EMBEDDED SYSTEM

DEVELOPMENT OF MOBILE ROBOT CONTROLLER BASED ON BLUETOOTH COMMUNICATION SYSTEM MUHAMAD ROZAIMI BIN MUHAMAD SABRI B

International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 4, April 2012)

DETECTION OF WORMHOLE ATTACK IN MOBILE AD-HOC NETWORKS MOJTABA GHANAATPISHEH SANAEI

SMART AQUARJUM (A UTOMATIC FEEDING MACHINE) SY AFINAZ ZURJATI BINTI BAHARUDDIN

90(111H7. AND 1800i1H7. MOBILE PHONE SI1Il'LATION WITH HVNIAN HEAD ANI) HAND 11ODEl.

LOGICAL OPERATORS AND ITS APPLICATION IN DETERMINING VULNERABLE WEBSITES CAUSED BY SQL INJECTION AMONG UTM FACULTY WEBSITES NURUL FARIHA BINTI MOKHTER

BORANG PENCALONAN HADIAH UNIVERSITI NOMINATION FORM FOR UNIVERSITY AWARD

HARDWARE-ACCELERATED LOCALIZATION FOR AUTOMATED LICENSE PLATE RECOGNITION SYSTEM CHIN TECK LOONG UNIVERSITI TEKNOLOGI MALAYSIA

ADAPTIVE VIDEO STREAMING FOR BANDWIDTH VARIATION WITH OPTIMUM QUALITY

Enhanced Hexagon with Early Termination Algorithm for Motion estimation

A LEVY FLIGHT PARTICLE SWARM OPTIMIZER FOR MACHINING PERFORMANCES OPTIMIZATION ANIS FARHAN BINTI KAMARUZAMAN UNIVERSITI TEKNOLOGI MALAYSIA

KOLEJ UNIVERSITI TEKNOLOGI TUN HUSSEIN ONN

ENHANCING SRAM PERFORMANCE OF COMMON GATE FINFET BY USING CONTROLLABLE INDEPENDENT DOUBLE GATES CHONG CHUNG KEONG UNIVERSITI TEKNOLOGI MALAYSIA

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

BORANG PANGESAHAII STATUS TESIS

Signature :.~... Name of supervisor :.. ~NA.lf... l.?.~mk.. :... 4./qD F. Universiti Teknikal Malaysia Melaka

BLOCK-BASED NEURAL NETWORK MAPPING ON GRAPHICS PROCESSOR UNIT ONG CHIN TONG UNIVERSITI TEKNOLOGI MALAYSIA

Digital Video Processing

FINGERPRINT DATABASE NUR AMIRA BINTI ARIFFIN THESIS SUBMITTED IN FULFILMENT OF THE DEGREE OF COMPUTER SCIENCE (COMPUTER SYSTEM AND NETWORKING)

SECURE-SPIN WITH HASHING TO SUPPORT MOBILITY AND SECURITY IN WIRELESS SENSOR NETWORK MOHAMMAD HOSSEIN AMRI UNIVERSITI TEKNOLOGI MALAYSIA

ENHANCING TIME-STAMPING TECHNIQUE BY IMPLEMENTING MEDIA ACCESS CONTROL ADDRESS PACU PUTRA SUARLI

Transcription:

IMPLEMENTATION OF DIAMOND SEARCH (DS) ALGORITHM FOR MOTION ESTIMATION USING MATLAB SITI HAJAR BINTI AHMAD This report is submitted in partial fulfillment of the requirements for the award of Bachelor of Electronic Engineering (Telecommunication Electronics) With Honours Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka April 2009

UNIVERSTI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA II IMPLEMENTATION OF DIAMOND SEARCH (DS) ALGORITHM Tajuk Projek : FOR MOTION ESTIMATION USING MATLAB 2005/2009 Sesi Pengajian : SITI HAJAR BINTI AHMAD Saya.. (HURUF BESAR) mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut: 1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka. 2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja. 3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi. 4. Sila tandakan ( ) : SULIT* (Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972) TERHAD* (Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TIDAK TERHAD Disahkan oleh: (TANDATANGAN PENULIS) (COP DAN TANDATANGAN PENYELIA) Alamat Tetap: 49, TMN SERI WANGSA, GUAR CHEMPEDAK, 08800 GURUN, KEDAH Tarikh: 30 APRIL 2009 Tarikh: 30 APRIL 2009

I hereby declare that this report is the result of my own work except for quotes as cited in the reference Signature : Author : SITI HAJAR BINTI AHMAD Date : 30 APRIL 2009

I hereby declare that I have read this report and in my opinion this report is sufficient in terms of the scope and quality for the award of Bachelor of Electronic Engineering (Telecommunication Electronics) With Honours Signature : Supervisors s Name : REDZUAN BIN ABD. MANAP Date : 30 APRIL 2009

To My loving parents, En. Ahmad bin Hj. Md. Noh and Pn. Eshah bt. Md. Arof My brother and sisters And all my friends

ACKNOWLEDGEMENT First and foremost, I would like to express my gratitude to Allah for giving me wisdom and guidance throughout my life and providing me the blessings to complete this work. This project would not have been possible without the support of many people. I would like to give a sincere thank to my supervisor, En. Redzuan bin Abd. Manap who was abundantly helpful and offered invaluable assistance, support and guidance to me. Special thanks also to my friends, especially Hashela, Irwan, Elya and Ada for sharing the literature and similar research interest and invaluable assistance. I also would like to thank all my BENT classmates especially Liyana and Wani for supporting and encouraging me during this research. Finally, I would like to thank my dearest family for giving me fully support on daily cares, finance, for their understanding and endless love, throughout the duration of my studies.

ABSTRACT The aim of this project is to implement a Diamond Search (DS) algorithm which is one type of Block Matching Algorithm (BMA) for block motion estimation in video compression by using MATLAB. In block motion estimation, search patterns with different shapes or sizes of motion vector distribution have a large impact on the searching speed and quality of performance. DS algorithm employs two search patterns which are large diamond search pattern (LDSP) and small diamond search pattern (SDSP). DS algorithm will finds the small motion vector with fewer search points. Simulation results demonstrate that the proposed DS algorithm achieves close performance but requires less computation complexity compared to Full Search (FS), New Three Step Search (NTSS), Four Step Search (4SS), Cross Search (CS) and Cross Diamond Search (CDS) algorithm. Experimental results also show that the DS algorithm is better than FS, NTSS, 4SS and CS in terms of required number of search points.

ABSTRAK Projek ini bertujuan untuk melaksanakan algoritma pencarian berlian di mana ianya adalah salah satu jenis algoritma penyesuaian blok untuk penganggaran gerakan blok di dalam kemampatan video dengan menggunakan MATLAB. Di dalam penganggaran gerakan blok, corak pencarian dengan bentuk dan saiz berbeza bagi pengagihan gerakan vektor akan memberi kesan ke atas kelajuan dan juga kualiti pencapaian. Algoritma bentuk belian menggunakan dua jenis corak pencarian iaitu corak pencarian berlian besar dan corak pencarian berlian kecil. Algoritma bentuk berlian akan mencari gerakan vektor yang kecil dengan titik pencarian yang sedikit. Keputusan dari simulasi menunjukkan algortima bentuk berlian mempunyai pencapaian yang hampir sama namun memerlukan kompleksiti pengiraan yang lebih sedikit jika dibandingkan dengan algoritma carian penuh (FS), tiga langkah carian baru (NTSS), empat langkah carian (4SS), carian bentuk silang (CS) dan juga carian bentuk silang-berlian (CDS). Keputusan juga menunjukkan bahawa carian bentuk berlian lebih bagus daripada algoritma algoritma FS, NTSS, 4SS, CS dari segi bilangan titik carian.

TABLE OF CONTENTS CHAPTER TITLE PAGE PROJECT TITLE VERIFYING FORM DECLARATION SUPERVISOR APPROVAL DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLE LIST OF FIGURE LIST OF ABBREVIATIONS LIST OF APPENDICES i ii iii iv v vi vii viii ix xii xiii xv xvii I INTRODUCTION 1.1 Introduction 1.2 Objective 1.3 Problem Statement 1.4 Project Scope 1.5 Thesis Structure 1 2 2 2 3

II LITERATURE REVIEW 2.1 Video Compression and Coding Techniques 2.2 Hybrid Video Compression System 2.3 Motion Estimation 2.4 Motion Compensation 2.5 Motion Vector 2.6 Block Matching Algorithm 2.6.1 Full Search Algorithm 2.6.2 The New Three Step Search Algorithm 2.6.3 The Four Step Search Algorithm 2.6.4 Cross Search Algorithm 2.6.5 Cross Diamond Search Algorithm 2.7 MATLAB 2.7.1 M-Files 2.8 Video Sequence 4 6 7 9 10 11 14 14 16 20 23 25 26 26 III METHODOLOGY 3.1 Literature Review 3.2 Software Development 3.2.1 Upload the video sequence in MATLAB 3.2.2 Extraction of video into frames 3.2.3 Block Construction 3.2.4 Implementation of Block Matching Algorithm 3.2.5 Predicted frame construction 3.2.6 Performance Analysis 29 29 30 30 30 31 31 32 IV DIAMOND SEARCH ALGORITHM 4.1 Introduction 4.2 Diamond Search Algorithm 33 35

V RESULT AND DISCUSSION 5.1 First Stage Analysis 5.2 Second Stage Analysis 5.3 Image for original and predicted frames in difference BMAs 5.4 Comments on DS algorithm 40 45 51 54 VI CONCLUSION AND SUGGESTIONS 6.1 Conclusion 6.2 Suggestion for future work 55 56 REFERENCES 58 APPENDIX 60

LIST OF TABLE NO TITLE PAGE 2.1 Types of video file 27 5.1 Comparison between different BMAs in term of PSNR 41 5.2 Comparison between different BMAs in term of search points 43 5.3 Comparison between different BMAs in term of PSNR 45 5.4 Characteristics of video file 46 5.5 Comparison between different BMAs in term of search points 48 5.6 Comparison between different BMAs in term of speed up ratio 50

LIST OF FIGURE NO TITLE PAGE 2.1 Image and video compression for visual transmission and storage 5 2.2 Encoder Block Diagram of a Typical Block-Based Hybrid 7 2.3 Motion Estimation for Reference and Predicted Frame 9 2.4 Motion estimation and motion vector 11 2.5 The current and previous frames in a search window 12 2.6(a) Example of NTSS Algorithm 15 2.6(b) Block diagram of the NTSS algorithm 16 2.7 Search patterns of the 4SS 18 2.8 Flowchart of 4SS algorithm 19 2.9 An example of the CSA search for w=8pels/frame 21 2.10 Flowchart of CS algorithm 22 2.11 Search patterns used in the CDS algorithm 24 2.12 Flowchart of the CDS algorithm 25 3.1 Project Implementation 29

3.2 Example of blocks in one frame which have 99 blocks 31 3.3 Example of one block taken out from the frame and perform block matching algorithm using motion estimation 32 4.1 An appropriate search pattern support 36 4.2 Two search pattern derieved from Fig. 4.1 36 4.3 Three cases of checking-point overlapping in LDSP 37 4.4 Search path example 37 4.5 Flowchart of DS algorithm 39 5.1 The graph for PSNR vs the number of frame for Akiyo sequence 42 5.2 The graph for PSNR vs the number of frame for Foreman sequence 43 5.3 The graph for search points vs number of frame for Akiyo sequence 44 5.4 The graph for search points vs number of frame for Foreman sequence 45 5.5 The graph for PSNR vs the number of frame for Akiyo sequence 47 5.6 The graph for PSNR vs the number of frame for Foreman sequence 47 5.7 The graph for search points vs number of frame for Akiyo sequence 49 5.8 The graph for search points vs number of frame for Foreman sequence 49 5.9 Image for original and predicted frame for Tennis sequence 51

LIST OF ABBREVIATIONS 4SS - Four Step Search BBGDS - Block-Based Gradient Descent Search BDM - Block Distortion Measure BMA - Block Matching Algorithm CCB - Cross-Center Biased CDS - Cross Diamond Search CS - Cross Search CSP - Cross Shape Pattern DCT - Discrete Cosine Transform DS - Diamond Search ES - Exhaustive Search FS - Full Search JPEG - Joint Photographic Experts Group LDSP - Large Diamond Search Pattern MAD - Mean Absolute Difference MATLAB - Matrix Laboratory MB - Macroblock MBD - Minimum Block Distortion ME - Motion Estimation MPEG - Moving Picture Experts Group

MSE - Mean Squared Error MV - Motion Vector NCCF - Normalized Cross-Correlation Function NTSS - New Three Step Search PSNR - Peak Signal-to-Noise Ratio QCIF - Quarter Common Intermediate Format SAD - Sum-of-Absolute Difference SDSP - Small Diamond Search Pattern SSD - Sum of square error TSS - Three Step Search VLC - Variable Length Coding

LIST OF APPENDIX NO TITLE PAGE A Frame for Tennis sequences 57

CHAPTER 1 INTRODUCTION 1.1 Introduction To achieve high compression ratio in video coding, a technique known as Block Matching Motion Estimation has been widely adopted in various coding standards. This technique is implemented conventionally by exhaustively testing all the candidate blocks within the search window. This type of implementation, called Full Search (FS) Algorithm, gives the optimum solution. However, substantial amount of computational workload is required in this algorithm. To overcome this drawback, many fast Block Matching Algorithms (BMA s) have been proposed and developed. Different search patterns and strategies are exploited in these algorithms in order to find the optimum motion vector with minimal number of required search points. One of these fast BMA s, which is proposed to be implemented in this project, is called Diamond Search (DS) Algorithm.

1.1 Objective The objective of this project is to implement the DS algorithm in MATLAB and to compare its performance to FS algorithm as well as to other fast BMAs which are New Three Step Search (NTSS), Four Step Search (4SS), Cross Search (CS) and Cross Diamond Search (CDS). 1.2 Problem Statement A substantial amount of computational workload is required during the execution of Full Search algorithm; however this drawback can be overcome by many types of fast BMAs which have been proposed and developed. Different types of search patterns and strategies are exploited in these fast BMAs algorithms in order to find the optimum motion vector with minimal number of required search point. However, there is a need to determine which of these fast BMAs perform the best as well as to identify their suitable characteristic when implemented on different type of video sequences. 1.3 Project Scope This project will focus on 3 main areas which first include literature review on video coding, BMAs and DS Algorithm. Second is the development and implementation of DS algorithm using MATLAB platform. Last but not least is the performance analysis of DS algorithm to Full Search FS algorithm and DS algorithm to other BMAs.

1.4 Thesis Structure Chapter 1 will discuss on the introduction. It provides information regarding to the project background, objectives, scope of project. Chapter 2 is about the literature review on video compression and coding technique. It will also cover an overall view on the other BMAs and motion estimation. Chapter 3 discusses methodology. It will describe the method employed in this project that is using MATLAB. It will be started by first uploading video technique, then extract the video into frames as well as the implementation of Block Matching Algorithm (BMA) and the analysis. Chapter 4 will cover on the DS algorithm in details. Here, all the theory about this algorithm such as the step of this algorithm is further explained and described. Chapter 5 is the result and discussion. DS algorithm is compared against five other BMAs which are FS, 4SS, NTSS, CS and CDS in term of PSNR, search points and speed up ratio. Chapter 6 is conclusion and suggestion. It this chapter, this thesis will be concluded with a critical review and recommendations for possible future work.

CHAPTER 2 LITERATURE REVIEW 2.1 Video Compression and Coding Techniques Video compression coding is the enabling technology behind a new wave of communication applications. From streaming internet video to broadcast digital television and digital cinema, the video codec is a key building block for a host of new multimedia applications and services. Video data compression is a process in which the amount of data used to represent video and image is reduced to meet a bit rate requirement, while the quality of the reconstructed image or video satisfies a requirement for a certain application and the complexity of computation involved is affordable for the application. The block diagram in the Figure 2.1 below shows the functionality of image and video data compression in visual transmission and storage. Image and video data

compression has been found to be necessary in these important applications because the huge amount of data involved in these and other applications usually greatly exceeds the capability of today s hardware despite rapid advancements in the semiconductor, computer and other related industries. Input Image and Video Compression Transmission and Storage Data Reconstruction or Data Retrieval Output Figure 2.1 Image and video compression for visual transmission and storage It is noted that information and data are two closely related yet different concepts. Data represent information, and the quantity of data can be measured. In the context of digital image and video, data are usually measured by the number of binary units (bits). The required quality of the reconstructed image and video is application dependent. In medical diagnoses and some scientific measurements, the reconstructed image and video may be needed to mirror the original image and video. In other words, only reversible, information-preserving schemes are allowed. This type of compression is referred to as lossless compression. In applications such as motion pictures and television, a certain amount of information loss is allowed. This type of compression is called lossy compression. From its definition, one can see that image and video data compression involves several fundamental concepts including information, data, visual quality of image and video, and computational complexity. The key ideas in video coding techniques is predict a new frame from a previous frame and only code the prediction error or known as inter prediction. The prediction error will be coded using an image coding method such as Discrete Cosine Transform (DCT) which based as in Joint Photographic Experts Group

(JPEG). Prediction error will have smaller energy than the original pixel values and can be coded with fewer bits. While those regions that cannot be predicted well will be coded directly using DCT that based in intra coding or intra prediction. Predicting a current block from previously coded blocks in the same frame is called intra prediction. The most popular video coding method is known as hybrid video compression system. 2.2 Hybrid Video Compression System [1] The most widely accepted video compression standard, such as MPEG-1, MPEG-2 and H.263, adopt a hybrid video compression approach. The approach is Hybrid because spatial redundancies in a video sequence are removed by transform-based method and temporal redundancies are removed by motion compensation prediction. Figure 2.2 shows a system overview of a video encoder employing hybrid video compression approach. The spatial redundancy of a video frame in the video sequence is exploited by a transform-based coding. The input video frame is transformed using (DCT). To reduce the computation complexity, the video frame is divided into a grid of 8x8 blocks and are transformed to 8x8 blocks of transform coefficients. After the transformation, most of the video signal energy is concentrated in the coefficients corresponding to the lower frequencies. Quantization is then applied to the coefficients to reduce the number of bits required to represent the coefficients. There are different quantization schemes specified in the video compression standards. Generally speaking all schemes try to retain most information in the energyconcentrated lower frequency coefficients with small quantization steps and minimize the bit required to store the lower energy higher frequency coefficients with large quantization steps. Quantization of transform coefficients leads to block of data with a few non-zero coefficients corresponding to a low frequency

components and long chains of zeros corresponding to high frequency components. The block of data is coded with variable length coding (VLC) scheme to minimize the number of bits to be transmitted or stored. Input Block + - - DCT Quantization Quantized Coefficient Motion Estimation Motion Compensation 0 Control (inter/intra) Side Information Motion Vector VLC Coded bit stream Previous Frame memory + Reconstructed block IDCT Inverse Quantization Figure 2.2 Block Diagram of a Typical Block-Based Hybrid Encoder It works on each macro block (MB) which is 16 x 16 pixels independently for reduced complexity. Motion compensation are done at the MB level while DCT coding of error at the block level which is 8 x 8 pixels. Finally, the encoded bit stream is sent to the video multiplex along with the coded motion vector information. As described in the JPEG description, the quantizer s step sizes can be adjusted based on desired picture quality and coding efficiency. 2.3 Motion Estimation Motion Estimation (ME) is an important part of any video compression system, since it can achieve significant compression by exploiting the temporal redundancy existing in a video sequence. Unfortunately it is also the most