Final Review. Image Processing CSE 166 Lecture 18

Similar documents
Digital Image Processing

Topic 5 Image Compression

CHAPTER 3 DIFFERENT DOMAINS OF WATERMARKING. domain. In spatial domain the watermark bits directly added to the pixels of the cover

EECS490: Digital Image Processing. Lecture #19

CoE4TN4 Image Processing. Chapter 8 Image Compression

3. (a) Prove any four properties of 2D Fourier Transform. (b) Determine the kernel coefficients of 2D Hadamard transforms for N=8.

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

IT Digital Image ProcessingVII Semester - Question Bank

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels

Binary Image Processing. Introduction to Computer Vision CSE 152 Lecture 5

MRT based Fixed Block size Transform Coding

CSEP 521 Applied Algorithms Spring Lossy Image Compression

Image Transformation Techniques Dr. Rajeev Srivastava Dept. of Computer Engineering, ITBHU, Varanasi

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression


Multimedia Communications. Transform Coding

Comparison of Digital Image Watermarking Algorithms. Xu Zhou Colorado School of Mines December 1, 2014

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

ECE 533 Digital Image Processing- Fall Group Project Embedded Image coding using zero-trees of Wavelet Transform

DCT Based, Lossy Still Image Compression

11. Image Data Analytics. Jacobs University Visualization and Computer Graphics Lab

Digital Image Processing. Image Enhancement - Filtering

DIGITAL IMAGE WATERMARKING BASED ON A RELATION BETWEEN SPATIAL AND FREQUENCY DOMAINS

Image Analysis Image Segmentation (Basic Methods)

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Image Compression. CS 6640 School of Computing University of Utah

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

1.Define image compression. Explain about the redundancies in a digital image.

CoE4TN3 Image Processing. Wavelet and Multiresolution Processing. Image Pyramids. Image pyramids. Introduction. Multiresolution.

A New Approach to Compressed Image Steganography Using Wavelet Transform

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

Review for the Final

Chapter 3: Intensity Transformations and Spatial Filtering

Mathematical Morphology and Distance Transforms. Robin Strand

Digital Image Processing

EECS490: Digital Image Processing. Lecture #22

Image Compression using Discrete Wavelet Transform Preston Dye ME 535 6/2/18

CHAPTER 4 REVERSIBLE IMAGE WATERMARKING USING BIT PLANE CODING AND LIFTING WAVELET TRANSFORM

Redundant Data Elimination for Image Compression and Internet Transmission using MATLAB

Image Coding and Compression

Engineering Mathematics II Lecture 16 Compression

IMAGE COMPRESSION. Chapter - 5 : (Basic)

4. Image Retrieval using Transformed Image Content

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

ECEN 447 Digital Image Processing

Digital Image Processing. Chapter 7: Wavelets and Multiresolution Processing ( )

Image coding and compression

Topic 4 Image Segmentation

EE795: Computer Vision and Intelligent Systems

Lecture 5: Compression I. This Week s Schedule

Segmentation and Grouping

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16]

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy

Digital Image Processing COSC 6380/4393

Chapter 4 Face Recognition Using Orthogonal Transforms

Overview. Videos are everywhere. But can take up large amounts of resources. Exploit redundancy to reduce file size

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Topic 6 Representation and Description

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

5.1 Introduction. Shri Mata Vaishno Devi University,(SMVDU), 2009

DIGITAL IMAGE PROCESSING

Application of Daubechies Wavelets for Image Compression

Feature Extraction and Image Processing, 2 nd Edition. Contents. Preface

Keywords DCT, SPIHT, PSNR, Bar Graph, Compression Quality

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Digital watermarking techniques for JPEG2000 scalable image coding

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Adaptive Quantization for Video Compression in Frequency Domain

VC 12/13 T16 Video Compression

Biomedical Image Analysis. Point, Edge and Line Detection

Digital Image Processing

Review of Image Compression Techniques

CHAPTER 7. Page No. 7 Conclusions and Future Scope Conclusions Future Scope 123

Wavelet Transform (WT) & JPEG-2000

Image segmentation. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

HYBRID IMAGE COMPRESSION TECHNIQUE

Biomedical signal and image processing (Course ) Lect. 5. Principles of signal and image coding. Classification of coding methods.

CHAPTER 6. 6 Huffman Coding Based Image Compression Using Complex Wavelet Transform. 6.3 Wavelet Transform based compression technique 106

Reversible Wavelets for Embedded Image Compression. Sri Rama Prasanna Pavani Electrical and Computer Engineering, CU Boulder

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

BSc (Hons) Computer Science. with Network Security. Examinations for / Semester 2

Biomedical Image Analysis. Mathematical Morphology

Image Coding. Image Coding

Image Compression Algorithm and JPEG Standard

Introduction to Digital Image Processing

Anno accademico 2006/2007. Davide Migliore

Ulrik Söderström 16 Feb Image Processing. Segmentation

2-D SIGNAL PROCESSING FOR IMAGE COMPRESSION S. Venkatesan, Vibhuti Narain Rai

Chapter 11 Image Processing

Image Processing, Analysis and Machine Vision

compression and coding ii

Compression of Stereo Images using a Huffman-Zip Scheme

Texture. Outline. Image representations: spatial and frequency Fourier transform Frequency filtering Oriented pyramids Texture representation

Digital Watermarking with Copyright Authentication for Image Communication

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

Transcription:

Final Review Image Processing CSE 166 Lecture 18

Topics covered Basis vectors Matrix based transforms Wavelet transform Image compression Image watermarking Morphological image processing Segmentation CSE 166, Fall 2017 2

General inverse transform using basis vectors CSE 166, Fall 2017 3

Matrix based transforms Discrete Fourier transform (DFT) Discrete Hartley transform (DHT) Discrete cosine transform (DCT) Discrete sine transform (DST) Walsh Hadamard (WHT) Slant (SLT) Haar (HAAR) Daubechies (DB4) Biorthogonal B spline (BIOR3.1) CSE 166, Fall 2017 4

Basis vectors of matrix based 1D transforms Example: DFT of f(x) = sin(2πx), N = 8 real part + imaginary part CSE 166, Fall 2017 5

Basis vectors of matrix based 1D transforms N = 16 real part imaginary part Standard basis (for reference) CSE 166, Fall 2017 6

Basis vectors of matrix based 1D transforms N = 16 basis dual Standard basis (for reference) CSE 166, Fall 2017 7

Basis images of matrix based 2D transforms Standard basis images (for reference) 8 by 8 array of 8 by 8 basis images CSE 166, Fall 2017 8

Basis images of matrix based 2D transforms Discrete Fourier transform (DFT) basis images real part imaginary part CSE 166, Fall 2017 9

Basis images of matrix based 2D transforms Discrete Hartley transform (DHT) basis images CSE 166, Fall 2017 10

Basis images of matrix based 2D transforms Discrete cosine transform (DCT) basis images CSE 166, Fall 2017 11

Basis images of matrix based 2D transforms Discrete sine transform (DST) basis images CSE 166, Fall 2017 12

Basis images of matrix based 2D transforms Walsh Hadamard transform (WHT) basis images CSE 166, Fall 2017 13

Basis images of matrix based 2D transforms Slant transform (SLT) basis images CSE 166, Fall 2017 14

Basis images of matrix based 2D transforms Haar transform (HAAR) basis images CSE 166, Fall 2017 15

Wavelet transforms A scaling function is used to create a series of approximations of a function or image, each differing by a factor of 2 in resolution from its nearest neighboring approximations. Wavelet functions (wavelets) are then used to encode the differences between adjacent approximations. The discrete wavelet transform (DWT) uses those wavelets, together with a single scaling function, to represent a function or image as a linear combination of the wavelets and scaling function. CSE 166, Fall 2017 16

Scaling function, multiresolution analysis 1. The scaling function is orthogonal to its integer translates. 2. The function spaces spanned by the scaling function at low scales are nested within those spanned at higher scales. 3. The only function representable at every scale (all ) is f(x) = 0. 4. All measureable, square integrable functions can be represented as CSE 166, Fall 2017 17

Relationship between scaling and wavelet function spaces CSE 166, Fall 2017 18

2D discrete wavelet transform Decomposition CSE 166, Fall 2017 19

2D discrete wavelet transform 3 level wavelet decomposition CSE 166, Fall 2016 20

Wavelet based edge detection Zero lowest scale approximation Edges Zero horizontal details Vertical edges CSE 166, Fall 2016 21

Wavelet based noise removal Noisy image Threshold details Zero highest resolution details Zero details for all levels CSE 166, Fall 2016 22

Data redundancy in images Coding redundancy Spatial redundancy Irrelevant information Does not need all 8 bits Information is unnecessarily replicated Information is not useful CSE 166, Fall 2017 23

Fidelity criteria subjective (qualitative) CSE 166, Fall 2017 24

Approximations Objective (quantitative) quality rms error (in intensity levels) 5.17 15.67 14.17 Lower is better (a) (b) (c) Subjective (qualitative) quality, relative (a) is better than (b). (b) is better than (c) CSE 166, Fall 2017 25

Compression system CSE 166, Fall 2017 26

Compression methods Huffman coding Golomb coding Arithmetic coding Lempel Ziv Welch (LZW) coding Run length coding Symbol based coding Bit plane coding Block transform coding Predictive coding Wavelet coding CSE 166, Fall 2017 27

Symbol based coding (0,2) (3,10) CSE 166, Fall 2017 28

Block transform coding Encoder Decoder CSE 166, Fall 2017 29

Block transform coding 4x4 subimages (4x4 basis images) Walsh Hadamard transform Discrete cosine transform CSE 166, Fall 2017 30

8x8 subimages Block transform coding Fourier transform Walsh Hadamard transform cosine transform Retain 32 largest coefficients Error image rms error 2.32 1.78 1.13 Lower is better CSE 166, Fall 2017 31

Block transform coding Reconstruction error versus subimage size DCT subimage size: 2x2 4x4 8x8 CSE 166, Fall 2017 32

JPEG uses block DCT based coding Compression reconstruction Scaled error image Zoomed compression reconstruction 25:1 Compression ratio 52:1 CSE 166, Fall 2017 33

Predictive coding model Encoder Decoder CSE 166, Fall 2017 34

Predictive coding Example: previous pixel coding Input image Histograms Prediction error image CSE 166, Fall 2017 35

Wavelet coding Encoder Decoder CSE 166, Fall 2017 36

Wavelet coding Detail coefficients below 25 are truncated to zero CSE 166, Fall 2017 37

JPEG 2000 uses wavelet based coding Compression reconstruction Scaled error image Zoomed compression reconstruction 25:1 Compression ratio 52:1 CSE 166, Fall 2017 38

JPEG 2000 uses wavelet based coding Compression reconstruction Scaled error image Zoomed compression reconstruction 75:1 Compression ratio 105:1 CSE 166, Fall 2017 39

Visible watermark Watermark Watermarked image Original image minus watermark CSE 166, Fall 2017 40

Invisible image watermarking system Encoder Decoder CSE 166, Fall 2017 41

Invisible watermark Example: watermarking using two least significant bits Original image JPEG compressed Extracted watermark Two least significant bits Fragile invisible watermark CSE 166, Fall 2017 42

Invisible watermark Example: DCT based watermarking Watermarked images Extracted robust invisible watermark CSE 166, Fall 2017 43

Reflection and translation Reflection Translation CSE 166, Fall 2017 44

Sets of pixels: objects and structuring elements (SEs) Border of background pixels around objects Tight border around SE CSE 166, Fall 2017 45

Reflection about the origin Origin Don t care elements CSE 166, Fall 2017 46

Erosion Example: square SE CSE 166, Fall 2017 47

Erosion Example: elongated SE CSE 166, Fall 2017 48

Erosion Shrinks 11x11 15x15 45x45 CSE 166, Fall 2017 49

Dilation Examples Square SE Elongated SE CSE 166, Fall 2017 50

Dilation Expands CSE 166, Fall 2017 51

Opening Structuring element rolls along inner boundary CSE 166, Fall 2017 52

Closing Structuring element rolls along outer boundary CSE 166, Fall 2017 53

Opening and closing Erosion Opening Dilation Closing CSE 166, Fall 2017 54

Morphological image processing Noisy input Erosion Opening Dilation Closing Dilation Erosion CSE 166, Fall 2017 55

Boundary extraction Erosion Set difference CSE 166, Fall 2017 56

Boundary extraction CSE 166, Fall 2017 57

Hole filling Given point in hole CSE 166, Fall 2017 58

Hole filling Given points in holes All holes filled CSE 166, Fall 2017 59

Connected components Given point in A CSE 166, Fall 2017 60

Connected components X ray image 15 connected components CSE 166, Fall 2017 61

Image segmentation Input Edges Segmentation Edge based Region based CSE 166, Fall 2017 62

Image derivatives CSE 166, Fall 2017 63

Detection of isolated points Laplacian (second derivative) Threshold absolute value Input Segmentation CSE 166, Fall 2017 64

Line detection Double lines Input Laplacian (second derivative) Threshold absolute value Threshold value CSE 166, Fall 2017 65

Line detection, specific directions Spatial filters CSE 166, Fall 2017 66

Line detection, specific directions +45 Negative values set to zero Threshold CSE 166, Fall 2017 67

Edge models Step Ramp Roof edge CSE 166, Fall 2017 68

Edge models Step Ramp Roof edge CSE 166, Fall 2017 69

Ramp edge Two points First derivative Second derivative One point CSE 166, Fall 2017 70

Noise and image derivatives Input First derivative Second derivative Noise CSE 166, Fall 2017 71

Gradient and edge direction Gradient direction is orthogonal to edge direction CSE 166, Fall 2017 72

Gradient operators Forward difference CSE 166, Fall 2017 73

Gradients Input Magnitude of vertical gradient Magnitude of horizontal gradient Magnitude of gradient vector CSE 166, Fall 2017 74

Gradients Smooth image prior to computing gradients. Results in more selective edges Input Magnitude of vertical gradient Magnitude of horizontal gradient Magnitude of gradient vector CSE 166, Fall 2017 75

Edge detection Threshold magnitude of gradient vector Without smoothing With smoothing CSE 166, Fall 2017 76

Advanced edge detection Input Magnitude of gradient vector (with smoothing) Marr Hildreth Canny See textbook for algorithms CSE 166, Fall 2017 77

Thresholding Histograms Single threshold Dual threshold CSE 166, Fall 2017 78

Noise and thresholding Noise CSE 166, Fall 2017 79

Varying background and thresholding Input Intensity ramp Product of input and intensity ramp CSE 166, Fall 2017 80

Basic global thresholding Input Intensity ramp Threshold CSE 166, Fall 2017 81

Optimum global thresholding Input Histogram Basic global thresholding Optimum global thresholding using Otsu s method CSE 166, Fall 2017 82

Image smoothing to improve global thresholding Otsu s method Without smoothing With smoothing CSE 166, Fall 2017 83

Image smoothing does not always improve global thresholding Otsu s method Without smoothing With smoothing CSE 166, Fall 2017 84

Edges to improve global thresholding Input Masked input Mask image (thresholded gradient magnitude) Optimum global thresholding using Otsu s method CSE 166, Fall 2017 85

Edges to improve global thresholding Mask image (thresholded absolute Laplacian) Input Masked input Optimum global thresholding using Otsu s method CSE 166, Fall 2017 86

Variable thresholding Input Global thresholding Local standard deviations Local thresholding using standard deviations CSE 166, Fall 2016 87

Variable thresholding Input (spot shading) Global thresholding Local thresholding using moving averages CSE 166, Fall 2016 88

Variable thresholding Input (sinusoidal shading) Global thresholding Local thresholding using moving averages CSE 166, Fall 2016 89

Segmentation by region growing Input X ray image Initial seed image Final seed image Output image CSE 166, Fall 2017 90

Segmentation by region growing Difference image Difference image thresholded using dual thresholds Difference image thresholded with the smallest of the dual thresholds Segmentation by region growing CSE 166, Fall 2017 91

Advanced segmentation methods k means clustering Superpixels Graph cuts CSE 166, Fall 2017 92

Segmentation using k means clustering Input Segmentation using k means, k = 3 CSE 166, Fall 2017 93

Superpixels Input image of 480,000 pixels Image of 4,000 superpixels with boundaries Image of 4,000 superpixels CSE 166, Fall 2017 94

Superpixels 1,000 superpixels 500 superpixels 250 superpixels CSE 166, Fall 2017 95

Superpixels for image segmentation Input image of 301,678 pixels Segmentation using k means, k = 3 Superpixel image (100 superpixels) Segmentation using k means, k = 3 CSE 166, Fall 2017 96

Images as graphs Stronger (greater weight) edges are darker Simple graph with edges only between 4 connected neighbors CSE 166, Fall 2017 97

Graph cuts for image segmentation Cut the weak edges CSE 166, Fall 2017 98

Graph cuts for image segmentation Input Smoothed input Graph cut segmentation CSE 166, Fall 2017 99