BoinJou

From Psych 221 Image Systems Engineering
Revision as of 18:34, 20 March 2013 by imported>Projects221 (Introduction)
Jump to navigation Jump to search

Back to Psych 221 Projects 2013



Introduction

Motivation

Background

CFA Interpolation

A color filter array is an array of color filters placed on top of a camera sensor to capture color information which can then be interpolated to produce color information for neighboring pixels. Different cameras can have different patterns for this CFA color sampling. The most common pattern used is the Bayer pattern.


Figure 1

In Camera Forensics, often, the periodicity of the Color Filter Array is exploited to detect possible tampering in images. But, often when given an image, we don’t know the sampling lattice, and also we don’t know how the interpolation was done. We can use the Expectation-Maximization (EM) algorithm to estimate both of these.

Expectation/Maximization Algorithm

f(x,y)=u,v=NNαu,vf(x+u,y+v)+n(x,y)


P{f(x,y)|f(x,y)M1}=1σ2πexp[12σ2(f(x,y)u,v=NNαu,vf(x+u,y+v))2]


E(α)=x,yw(x,y)(f(x,y)u,v=NNαu,vf(x+u,y+v))2

Methods

Here is a brief outline of our algorithm.

We use a sliding window of size 64x64 to traverse the image with 32 pixel increments. We run the EM algorithm on every block. Then we have a clustering step to localize tampered region using the EM outputs. Finally, we use the cluster maps to classify our image as real or fake.

Assumptions

Localization: Clustering

After running EM on a block, we get two set of useful outputs. First of all, we get a probability map showing which pixels were sampled and which were not, which we take a Fourier Transform of. We also get the estimated alpha values which describe the interpolation weights of neighboring pixels. There is useful information in both of these outputs at different degrees for different images. Our algorithm uses both set of data.

Classification

Results

Localization: Clustering

Some text. Some analysis. Some figures.

Classification

Some text. Some analysis. Some figures.

JPEG Compression

Conclusions

References

References

Software

Appendix I - Code and Data

Code

File:CodeFile.zip

Data

zip file with my data

Appendix II - Work partition