May 9, 2005 Andrew C. Gallagher1 CRV2005 Detection of Linear and Cubic Interpolation in JPEG Compressed Images Andrew C. Gallagher Eastman Kodak Company.

Slides:



Advertisements
Similar presentations
1 Image Authentication by Detecting Traces of Demosaicing June 23, 2008 Andrew C. Gallagher 1,2 Tsuhan Chen 1 Carnegie Mellon University 1 Eastman Kodak.
Advertisements

CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
Assuming normally distributed data! Naïve Bayes Classifier.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Fourier Transform Analytic geometry gives a coordinate system for describing geometric objects. Fourier transform gives a coordinate system for functions.
Lecture 2: Edge detection and resampling
Image Sampling Moire patterns
Lecture 3: Edge detection, continued
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Image Sampling Moire patterns -
Unit 7 Fourier, DFT, and FFT 1. Time and Frequency Representation The most common representation of signals and waveforms is in the time domain Most signal.
Input image Output image Transform equation All pixels Transform equation.
Application of Digital Signal Processing in Computed tomography (CT)
Chapter 9 Numerical Integration Numerical Integration Application: Normal Distributions Copyright © The McGraw-Hill Companies, Inc. Permission required.
DIGITAL SIGNAL PROCESSING IN ANALYSIS OF BIOMEDICAL IMAGES Prof. Aleš Procházka Institute of Chemical Technology in Prague Department of Computing and.
1  The goal is to estimate the error probability of the designed classification system  Error Counting Technique  Let classes  Let data points in class.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
Computer Science: A Structured Programming Approach Using C1 3-7 Sample Programs This section contains several programs that you should study for programming.
Chapter 4: Sampling of Continuous-Time Signals
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
Numerical Methods Discrete Fourier Transform Part: Discrete Fourier Transform
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
HOW TO SOLVE IT? Algorithms. An Algorithm An algorithm is any well-defined (computational) procedure that takes some value, or set of values, as input.
How To Find The Reduced Row Echelon Form. Reduced Row Echelon Form A matrix is said to be in reduced row echelon form provided it satisfies the following.
Digital Signal Processing – Chapter 10
Image Resampling CS4670: Computer Vision Noah Snavely.
May 9, 2005 Andrew C. Gallagher1 CRV2005 Using Vanishing Points to Correct Camera Rotation Andrew C. Gallagher Eastman Kodak Company
Ch.4 DISCRETE PROBABILITY DISTRIBUTION Prepared by: M.S Nurzaman, S.E, MIDEc. ( deden )‏
Image Resampling CS4670: Computer Vision Noah Snavely.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
Image Processing Edge detection Filtering: Noise suppresion.
Line detection Assume there is a binary image, we use F(ά,X)=0 as the parametric equation of a curve with a vector of parameters ά=[α 1, …, α m ] and X=[x.
Fourier Analysis of Discrete-Time Systems
Fourier Analysis of Discrete Time Signals
Chapter 5 Finite-Length Discrete Transform
CH#3 Fourier Series and Transform
revision Transfer function. Frequency Response
Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Tom.h.wilson Department of Geology and Geography West Virginia University Morgantown, WV.
Model Fusion and its Use in Earth Sciences R. Romero, O. Ochoa, A. A. Velasco, and V. Kreinovich Joint Annual Meeting NSF Division of Human Resource Development.
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
Professor A G Constantinides 1 Discrete Fourier Transforms Consider finite duration signal Its z-tranform is Evaluate at points on z-plane as We can evaluate.
Blind Inverse Gamma Correction (Hany Farid, IEEE Trans. Signal Processing, vol. 10 no. 10, October 2001) An article review Merav Kass January 2003.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 4 – Audio and Digital Image Representation Klara Nahrstedt Spring 2010.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
2D Fourier Transform.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
1 Chapter 8 The Discrete Fourier Transform (cont.)
Image Resampling & Interpolation
CS 591 S1 – Computational Audio
Virtual University of Pakistan
… Sampling … … Filtering … … Reconstruction …
Image Sampling Moire patterns
Digital 2D Image Basic Masaki Hayashi
Image transformations
Image Sampling Moire patterns
Exposing Digital Forgeries by Detecting Traces of Resampling Alin C
Chapter 8 The Discrete Fourier Transform
Samuel Cheng Slide credits: Noah Snavely
Filtering Part 2: Image Sampling
Image Sampling Moire patterns
Image Resampling & Interpolation
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Samuel Cheng Slide credits: Noah Snavely
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Review and Importance CS 111.
Presentation transcript:

May 9, 2005 Andrew C. Gallagher1 CRV2005 Detection of Linear and Cubic Interpolation in JPEG Compressed Images Andrew C. Gallagher Eastman Kodak Company

May 9, 2005 Andrew C. Gallagher2 CRV2005 The Problem An image consists of a number of discrete samples. Interpolation can be used to modify the number of and locations of the samples. Given an image, can interpolation be detected? If so, can the interpolation rate be determined?

May 9, 2005 Andrew C. Gallagher3 CRV2005 The Concept A interpolated sample is a linear combination of neighboring original samples y(n 0 ). The weights depend on the relative positions of the original and interpolated samples. Thus, the distribution (calculated from many lines) of interpolated samples depends on position. Original samples and an interpolated sample n0n0 n1n1 n2n2 y(n 0 )y(n 1 )y(n 2 ) x0x0 i(x 0 )

May 9, 2005 Andrew C. Gallagher4 CRV2005 The Periodic Signal v(x) The second derivative of interpolated samples is computed. The distribution of the resulting signal is periodic with period equal to the period of the original signal. The expected periodic signal can be calculated explicitly for specific interpolators, assuming the sample value distribution is known. n0n0 n1n1 n2n2 y(n 0 )y(n 1 )y(n 2 ) x0x0 i(x 0 ) x0-x0- i(x 0 -  ) x0+x0+ Original samples and an interpolated sample n0n0 n1n1 n2n2 Distribution (standard deviation) of interpolated samples 1 period  v(x)

May 9, 2005 Andrew C. Gallagher5 CRV2005 The Periodic Signal v(x) Linear Interpolation Cubic Interpolation This property can be exploited by an algorithm designed to detect linear interpolation.

May 9, 2005 Andrew C. Gallagher6 CRV2005 The Algorithm In Matlab, the first three boxes can be executed as: –bdd =diff(diff(double(b))); –bm = mean(abs(bdd),2); –bf = fft(bm); A peak in the DFT signal corresponds to interpolation with rate compute second derivative of each row p(i,j) average across rows compute Discrete Fourier Transform estimate interpolation rate N (assuming no aliasing)

May 9, 2005 Andrew C. Gallagher7 CRV2005 Resolving Aliasing The algorithm produces samples of the periodic signal v(x). Aliasing occurs when sampled below the Nyquist rate (2 samples per period). All interpolation rates will alias to N. Only two possible solutions for rates N>1 (upsampling). An infinite number of solutions for N<1. The correct rate can often be determined through prior knowledge of the system. (Q a positive integer)

May 9, 2005 Andrew C. Gallagher8 CRV2005 Example Signals: N = 2 After summing across rows v(x) After computing DFT

May 9, 2005 Andrew C. Gallagher9 CRV2005 Example DFT Signals

May 9, 2005 Andrew C. Gallagher10 CRV2005 Effect of JPEG Compression Heavy JPEG compression appears similar to an interpolation by 8. Therefore, the peaks in the DFT signal associated with JPEG compression must be ignored. digital zoom by N o(i,j) JPEG compression p(i,j) After computing DFT no interpolation JPEG compression interpolation N = 2.8 JPEG compression

May 9, 2005 Andrew C. Gallagher11 CRV2005 Experiment A Kodak CX7300 (3MP) captured 114 images 13 images were non-interpolated. The remainder were interpolated with rate between 1.1 and 3.0. N

May 9, 2005 Andrew C. Gallagher12 CRV2005 Results Algorithm correctly classified between interpolated (101) and non-interpolated (13) images. Interpolation rate was correctly estimated for 85 images. For the remaining 16 images, the algorithm identified the interpolation rate as either 1.5 or 3.0. This is correct but ambiguous.

May 9, 2005 Andrew C. Gallagher13 CRV2005 Conclusions Linear interpolation in images can be robustly detected. The interpolation detection algorithm performs well even when the interpolated image has undergone JPEG compression. The algorithm is computationally efficient. The algorithm has commercial applications in printing, image metrology and authentication.