A JPEG CORNER ARTIFACT FROM DIRECTED ROUNDING OF DCT COEFFICIENTS. Shruti Agarwal and Hany Farid

Similar documents
Photo Forensics from JPEG Dimples

Digital Image Authentication from Thumbnails

Camera identification from sensor fingerprints: why noise matters

Introduction to Video Forgery Detection: Part I

Exposing Digital Forgeries from JPEG Ghosts

IMPROVEMENTS ON SOURCE CAMERA-MODEL IDENTIFICATION BASED ON CFA INTERPOLATION

IDENTIFYING DIGITAL CAMERAS USING CFA INTERPOLATION

Detection of Image Forgery was Created from Bitmap and JPEG Images using Quantization Table

Fragile Sensor Fingerprint Camera Identification

PRIOR IMAGE JPEG-COMPRESSION DETECTION

Camera Model Identification Framework Using An Ensemble of Demosaicing Features

Artifacts and Antiforensic Noise Removal in JPEG Compression Bismitha N 1 Anup Chandrahasan 2 Prof. Ramayan Pratap Singh 3

Assistant Lecturer Sama S. Samaan

An Automatic JPEG Ghost Detection Approach for Digital Image Forensics

Distinguishing between Camera and Scanned Images by Means of Frequency Analysis

Practical Content-Adaptive Subsampling for Image and Video Compression

Countering Anti-Forensics of Lateral Chromatic Aberration

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

Module 6 STILL IMAGE COMPRESSION STANDARDS

Detecting Resized Double JPEG Compressed Images Using Support Vector Machine

Objective Evaluation of Edge Blur and Ringing Artefacts: Application to JPEG and JPEG 2000 Image Codecs

Image Enhancement in Spatial Domain

Compression and Image Formats

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Multimedia Forensics

Histogram Modification Based Reversible Data Hiding Using Neighbouring Pixel Differences

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Chapter 9 Image Compression Standards

University of Amsterdam System & Network Engineering. Research Project 1. Ranking of manipulated images in a large set using Error Level Analysis

Camera Image Processing Pipeline: Part II

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

Analysis on Color Filter Array Image Compression Methods

Lossy and Lossless Compression using Various Algorithms

MISLGAN: AN ANTI-FORENSIC CAMERA MODEL FALSIFICATION FRAMEWORK USING A GENERATIVE ADVERSARIAL NETWORK

Audio Signal Compression using DCT and LPC Techniques

Digital Watermarking Using Homogeneity in Image

Watermarking-based Image Authentication with Recovery Capability using Halftoning and IWT

No-Reference Image Quality Assessment using Blur and Noise

Hiding Image in Image by Five Modulus Method for Image Steganography

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

SOURCE CAMERA IDENTIFICATION BASED ON SENSOR DUST CHARACTERISTICS

ISSN: ISO 9001:2008 Certified International Journal of Engineering and Innovative Technology (IJEIT) Volume 2, Issue 3, September 2012

Image Tampering Localization via Estimating the Non-Aligned Double JPEG compression

Defense Technical Information Center Compilation Part Notice

Interference in stimuli employed to assess masking by substitution. Bernt Christian Skottun. Ullevaalsalleen 4C Oslo. Norway

Subjective evaluation of image color damage based on JPEG compression

Camera Image Processing Pipeline: Part II

Measure of image enhancement by parameter controlled histogram distribution using color image

Templates and Image Pyramids

Impeding Forgers at Photo Inception

Chapter 2: Digitization of Sound

Survey On Passive-Blind Image Forensics

Journal of mathematics and computer science 11 (2014),

Applying the Sensor Noise based Camera Identification Technique to Trace Origin of Digital Images in Forensic Science

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

2. REVIEW OF LITERATURE

Correction of Clipped Pixels in Color Images

Figures from Embedded System Design: A Unified Hardware/Software Introduction, Frank Vahid and Tony Givargis, New York, John Wiley, 2002

Interpolation of CFA Color Images with Hybrid Image Denoising

Blind Removal of Lens Distortion

REVERSIBLE data hiding, or lossless data hiding, hides

Artifacts Reduced Interpolation Method for Single-Sensor Imaging System

A Modified Image Template for FELICS Algorithm for Lossless Image Compression

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

A Modified Image Coder using HVS Characteristics

Sensors & Transducers 2015 by IFSA Publishing, S. L.

A Simple and Effective Image-Statistics-Based Approach to Detecting Recaptured Images from LCD Screens

Speech Enhancement Based On Spectral Subtraction For Speech Recognition System With Dpcm

A Study of Slanted-Edge MTF Stability and Repeatability

An Integrated Image Steganography System. with Improved Image Quality

Image De-Noising Using a Fast Non-Local Averaging Algorithm

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Source Camera Model Identification Using Features from contaminated Sensor Noise

Effective Pixel Interpolation for Image Super Resolution

Image Distortion Maps 1

Application of Histogram Examination for Image Steganography

Simultaneous Encryption/Compression of Images Using Alpha Rooting

TDI2131 Digital Image Processing

Improvements of Demosaicking and Compression for Single Sensor Digital Cameras

Direction-Adaptive Partitioned Block Transform for Color Image Coding

AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION

Image Processing for feature extraction

Demosaicing Algorithms

Templates and Image Pyramids

Lossy Image Compression

JPEG2000: IMAGE QUALITY METRICS INTRODUCTION

Format Based Photo Forgery Image Detection S. Murali

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

WITH the rapid development of image processing technology,

Image Compression with Variable Threshold and Adaptive Block Size

COLOR LASER PRINTER IDENTIFICATION USING PHOTOGRAPHED HALFTONE IMAGES. Do-Guk Kim, Heung-Kyu Lee

Image Compression Using SVD ON Labview With Vision Module

Information Hiding: Steganography & Steganalysis

ECE/OPTI533 Digital Image Processing class notes 288 Dr. Robert A. Schowengerdt 2003

A COMPARATIVE ANALYSIS OF DCT AND DWT BASED FOR IMAGE COMPRESSION ON FPGA

Comparative Analysis of Lossless Image Compression techniques SPHIT, JPEG-LS and Data Folding

VISUAL sensor technologies have experienced tremendous

A Novel Color Image Compression Algorithm Using the Human Visual Contrast Sensitivity Characteristics

Wavelet-based image compression

Steganalysis in resized images

Transcription:

A JPEG CORNER ARTIFACT FROM DIRECTED ROUNDING OF DCT COEFFICIENTS Shruti Agarwal and Hany Farid Department of Computer Science, Dartmouth College, Hanover, NH 3755, USA {shruti.agarwal.gr, farid}@dartmouth.edu ABSTRACT JPEG compression introduces a number of well known artifacts including blocking and ringing. We describe a lesser known or understood artifact consisting of a slightly darker or lighter pixel in the corner of 8 8 pixel blocks. This artifact is introduced by the directed rounding of DCT coefficients. In particular, we show that DCT coefficients that are uniformly rounded down or up (but not to the nearest neighbor) give rise to this artifact. An analysis of thousands of different camera models reveals that this artifact is present in approximately 61% of cameras. We also propose a simple filtering technique for removing this artifact. Index Terms JPEG Compression, JPEG Artifact 1. INTRODUCTION The JPEG image standard is the most popular lossy compression scheme [1]. Despite its relatively high compression rates, JPEG compression introduces perceptual artifacts [2,3]. Most notably, blocking artifacts manifest themselves with a regular grid structure on an 8 8 pixel lattice and ringing artifacts manifest themselves with spatial aliasing that are particularly salient at high frequency edges. We describe a less visually salient compression artifact which we term JPEG dimples that manifests as a slightly darker or lighter pixel in the top-left corner of 8 8 pixel blocks, Fig. 1. Although this artifact has previously been noted [4, 5], its root cause has not previously been explained. We describe the nature of this artifact, its prevalence in commercial cameras, and a simple filtering technique for removing this artifact. The primary source of compression and information loss in the JPEG standard results from quantization of the discrete cosine transformed (DCT) coefficients [1]. Here, we are interested in the rounding operator used to convert DCT coefficients from floating-point to integer values. Three common rounding operators are: round to nearest integer (roundnearest), round down to nearest integer (round-down), and This research was developed with funding from the Defense Advanced Research Projects Agency (DARPA FA875-16-C-166). The views, opinions, and findings expressed are those of the authors and should not be interpreted as representing the official views or policies of the Department of Defense or the U.S. Government. round up to nearest integer (round-up). Although each of these operators converts from floating-point to integer values, each yields slightly different values. The round-down operator displaces all of the original values in one direction towards. In contrast, the round-up operator displaces all of the original values towards +. And, the round-nearest operator does not consistently displace values in one direction or another. We will show that the directional rounding performed by the round-down and round-up operators but not the round-nearest operator yields a compression artifact. To see the nature of this artifact, consider the following 1-D example. Let s be the following 1-D signal: s = ( 1.2 2.8 7.1 3.3 6.7 8.9 ). (1) For simplicity, we will quantize this 1-D signal with q = 1. The quantized values, as computed with the round-nearest operator, round( s/q) = [ s/q ], are: s n = ( 1 3 7 3 7 9 ). (2) The quantized values, as computed with the round-down operator, s/q, and round-up operator, s/q, are: s d = ( 1 2 7 3 6 8 ) (3) s u = ( 2 3 8 4 7 9 ). (4) In this toy example, the relationship between the three quantized signals and the original signal are: s n = s + (.2.2.1.3.3.1 ) s d = s + (.2.8.1.3.7.9 ) s u = s + (.8.2.9.7.3.1 ). Notice that the values in s n are intermittently larger or smaller than the original signal s. On the other hand, the values in s d are consistently smaller than the original signal s and the values in s u are consistently larger than the original signal. To a first approximation, therefore, we can express the relationship between the results of the round-down and round-up operators as follows: s d s α d 1 (5) s u s + α u 1, (6)

round-nearest round-down round-up 121 118 115 112 Fig. 1. Each panel shows a 32 32 intensity block computed by averaging all non-overlapping blocks from a fractal image. From left to right the image is JPEG compressed using the round-nearest, round-down, or round-up operator. The periodic JPEG dimples a single dark or bright pixel in the upper left corner of each 8 8 pixel block are introduced by the directed rounding operators but not by the round-nearest operator. where 1 = ( 1 1 ) is a constant signal, α d is the mean of s d s, and α u is the mean of s u s. Since this quantization is performed in the frequency domain, let s now consider the result of converting back into the spatial domain: D 1 ( s d ) = D 1 ( s α d 1), (7) where D( ) is the forward and D 1 ( ) is the inverse DCT operator. Because of the linearity of the DCT, the right-hand side of this equation can be expressed as: D 1 ( s d ) = D 1 ( s) α d D 1 ( 1) = D 1 ( s) α d δ, (8) where the inverse DCT of a constant signal, 1, is an impulse δ. 1 The round-up operator yields a similar result except that impulse is now additive: D 1 ( s u ) = D 1 ( s) + α u δ. (9) Due to the subtraction or addition of an impulse, the leftmost value in D 1 ( s d ) and D 1 ( s u ) will be slightly smaller or larger than D 1 ( s n ). In the 2-D case, this process is repeated for every 8 8 pixel block leading to a periodic artifact in which the top-left corner of each block is consistently dark (round-down) or light (round-up). We informally refer to this artifact as JPEG dimples. Shown in Fig. 1 are three 32 32 intensity blocks computed by averaging all non-overlapping intensity blocks of a 1 Depending on the type of DCT transform (I, II, III, or IV) and the length of the signal, the impulse may contain some spatial ringing we assume a DCT-I. The location of this impulse in the spatial domain is dictated by the phase of the constant signal in the frequency domain. In our case, this phase is zero and so the impulse is positioned at the left-most sample. synthetic image 2. From left to right, the image is compressed using a custom JPEG encoder with either the round-nearest, round-down, or round-up operator. The dimples, as predicted, are clearly visible in each 8 8 block and are darker for the round-down operator and brighter for the round-up operator, but are not introduced by the round-nearest operator. Although the JPEG dimples are clearly visible in the average intensity block, the artifact is not as salient in the absence of this averaging. 2. PREVALENCE In this section we explore the prevalence of JPEG dimples in a wide range of commercial cameras. The presence or absence of dimples is determined by using a simple template-based approach. To begin, a 3-channel RGB image is partitioned into non-overlapping blocks of size N N pixels (where N is a multiple of 8). A single average intensity block is computed by averaging all blocks across all three channels. This averaging makes the measurement of dimples more reliable by reducing the regularity of the underlying image content. A template of size N N, is then constructed in which the entire image is black (pixel value ) except for a single unit impulse (pixel value 1) in the top left corner of every 8 8 pixel block. This template models the expected pattern of the JPEG dimples. The correlation between the template and the averaged block is computed using the peak to correlation energy (PCE) [5]. The absolute PCE value indicates the strength of dimples, with a larger value corresponding to a more prominent artifact. 2 A fractal image is generated in the frequency domain with a 1/ω power spectrum and random phase

25 Dimples No Dimples 2 25.5% 84.4% 15 1 2.5% 87.5% 69.7% 5 9.9% 82.1% 83.3% 33.3% 5 25% 33.3% 62.5% Count Apple Asus Canon Casio Fujifilm Gateway GeneralImaging Google HTC Hewlett-Packard JVC Kodak Kyocera LG Leica 38.5% Minolta 27.8% Motorola 89.2% Nikon 15.8% Nokia Olympus Panasonic 58.3% Pentax Polaroid 35.3% RIM Samsung Sanyo 5 SeikoEpson 23.1% SonyEricsson Sony Toshiba Vivitar Fig. 2. The prevalence of JPEG dimples per camera manufacturer. Each bar corresponds to the total number of models per camera manufacturer. The portion of each bar shaded blue/yellow corresponds to those models with/without dimples. The numeric value above each bar corresponds to the percentage of models with dimples. We performed two analyses to determine the prevalence of JPEG dimples in commercial cameras. For both analyses, approximately 4, unmodified images collected from Flickr were analyzed [6]. These images were acquired from 4, 39 different camera configurations defined as unique camera manufacturer, model, and capture resolution. The size N of the average block was fixed at 32 32. A camera configuration with an absolute PCE greater than an empirically determined value of 15 is said to contain JPEG dimples. For the first of the two analyses, we selected images from 1, 17 of 4, 39 camera configurations by considering configurations with maximum capture resolution afforded by a camera manufacturer and model (as determined by dpreview.com). Shown in Fig. 2 is the prevalence of dimples for each of 31 different camera manufacturers. For each camera manufacturer, we report the total number of camera models with (blue) and without (yellow) JPEG dimples. The length of each bar indicates the total number of models analyzed for that manufacturer. Overall, 61% of camera models analyzed contain the JPEG dimple artifact. Images from Asus, HTC and Sony consistently contain dimples regardless of the camera model. Most models from a few other manufacturers (e.g., Apple, Fujifilm, Nikon, Olympus, and Panasonic) consistently introduce dimples. On the other hand, images from Kodak PCE 5 4 3 2 1 Minolta Sony HTC Olympus Fujifilm Motorola Samsung Nikon Casio SonyEricsson Fig. 3. The average strength of JPEG dimples per camera manufacturer. Each bar corresponds to the average PCE value for all available models per manufacturer and the error bars correspond to plus/minus one standard deviation. cameras almost never contain dimples, except for two camera models. In between these extremes are, for example, Canon and Samsung in which the presence of dimples depends on the specific camera model. In our second analysis, we observe that the strength and presumably, therefore, the visual saliency of the dim- RIM Panasonic Kodak Apple Pentax LG Nokia Leica Canon

(a) (b) round-nearest round-down round-up Fig. 4. The distributions along the first row correspond to a single AC frequency quantified with non-directional or directional rounding. The shift leftward and rightward introduced by the round-down and round-up operators lead to the JPEG dimple artifact. Shown in the second row are the distributions of this same AC frequency after removing the JPEG dimple artifact in which each distribution is now symmetric. ple artifact varies by more than a factor of two across camera manufacturers. Shown in Fig. 3 is the average PCE observed for 19 camera manufacturers that have images from at least five different models that contain dimples. The average PCE ranges from a maximum of 42 (Minolta) to a minimum of 18 (Canon). We hypothesize that these variations are due to different optimized rounding implementations, but further ongoing work is required to fully confirm this hypothesis. 3. REMOVAL We next describe a simple filtering technique for removing JPEG dimple artifacts. Shown in Fig. 4(a) is a representative distribution of a single AC frequency quantized with nondirectional (nearest) and directional (down or up) rounding. As expected, the round-nearest distribution is zero-mean and symmetric about the origin [7, 8] while the round-down and round-up distributions are skewed with a negative and positive mean caused by the directional nature of the rounding. These skewed distributions give rise to the JPEG dimple artifact. We seek, therefore, to eliminate this skew in each AC frequency. Denote µ as the mean of n AC coefficients at a single frequency quantized by an integer value q. We randomly choose (µn)/q coefficients and shift them by an amount sq where s is sign(µ). Note that with this strategy, coefficients are shifted by integer values so that the adjusted coefficients remain integers. Shown in Fig. 4 are the distributions before and after applying this adjustment. In each case, the adjusted distributions are zero-mean and symmetric. 1.9.8.7.6.5.4.3.2.1 Original Corrected 1 2 3 4 5 PCE Fig. 5. Cumulative distribution of PCE values from 4, JPEG images before (solid blue) and after (dashed blue) dimple removal. The vertical line corresponds to our PCE threshold of 15. After removal 95.6% of images do not contain dimples (PCE < 15) as compared to.9% before removal. As we will show next, this adjustment, when applied to all AC coefficients, results in removal of JPEG dimples from the image. We tested our removal technique on 4, JPEG images randomly selected from camera manufacturers that were found to have dimples. Shown in Fig. 5 is cumulative distribution of PCE values for these images before and after the dimple removal. After removal, the strength of the dimples in 95% of the images was reduced below the PCE detection threshold. At the same time, the average PSNR between the adjusted and original image is 52.1 db with a standard deviation of 1.8 db. 4. DISCUSSION We have described a lesser known or understood JPEG artifact that results from the choice of mathematical operator used to convert DCT coefficients from floating-point to integer values. We argue that the presence of directed rounding during JPEG compression is the cause of this artifact, and have provided a theoretical and experimental validation to support this claim. The majority of commercial cameras that we analyzed introduce this artifact. Although not as perceptually salient as the better-known, and more visually salient, JPEG blocking and ringing artifacts, the JPEG dimple artifact described here can be avoided by simply using the roundnearest operator. We have also proposed a mechanism for the removal of dimples in JPEG images that are compressed using directed rounding. On the other hand, this artifact, as with other JPEG artifacts, can be exploited to authenticate digital images [9, 1].

5. REFERENCES [1] G. K. Wallace, The JPEG still picture compression standard, Communications of the ACM, vol. 34, no. 4, pp. 3 44, 1991. [2] M. Yuen and H. R. Wu, A survey of hybrid MC/DPCM/DCT video coding distortions, Signal Processing, vol. 7, no. 3, pp. 247 278, 1998. [3] M. A. Robertson and R. L. Stevenson, DCT quantization noise in compressed images, IEEE Transactions Circuits Systems for Video Technology, vol. 15, no. 1, pp. 27 38, 25. [4] Y. L. Lee, H. C. Kim, and H. W. Park, Blocking effect reduction of JPEG images by signal adaptive filtering, IEEE Transactions on Image Processing, vol. 7, no. 2, pp. 229 234, 1998. [5] M. Goljan, J. Fridrich, and T. Filler, Large scale test of sensor fingerprint camera identification, in Proceedings of SPIE, Electronic Imaging, Media Forensics and Security XI, 29, vol. 7254, pp. 7254I 7254I 12. [6] E. Kee, M. K. Johnson, and H. Farid, Digital image authentication from JPEG headers, IEEE Transactions on Information Forensics and Security, vol. 6, no. 3, pp. 166 175, 211. [7] M. C. Stamm, S. K. Tjoa, W. S. Lin, and K. J. R. Liu, Anti-forensics of JPEG compression, in IEEE International Conference on Acoustics, Speech and Signal Processing, 21, pp. 1694 1697. [8] E. Y. Lam and J. W. Goodman, A mathematical analysis of the DCT coefficient distributions for images, IEEE Transactions on Image Processing, vol. 9, no. 1, pp. 1661 1666, 2. [9] H. Farid, Photo Forensics, MIT Press, 216. [1] S. Agarwal and H. Farid, Photo forensics from JPEG dimples, in IEEE Workshop on Information Forensics and Security, 217.