Hsu: Difference between revisions
imported>Projects221 |
imported>Projects221 |
||
| Line 40: | Line 40: | ||
=== Measure of Similarity === | === Measure of Similarity === | ||
Tamper detection was implemented by calculating the cosine similarity between an ideal probability map and the estimated probability map. The cosine similarity function is given by: | |||
<math> M(p, s) = \frac{ \sum\limits_{w_{x}, w_{y}} {P \times S}} | |||
{\sqrt{\sum\limits_{w_{x}, w_{y}} {(P)^2}} \times \sqrt{\sum\limits_{w_{x}, w_{y}} {(S)^2}}}</math> | |||
where ''P}'' is the Fourier transform of the calculated probability map and ''S'' is the Fourier transform of the ideal probability map for each channel. The similarity between the ideal and calculated probability maps determines whether or not the image has been modified; high similarity indicates that the given CFA interpolation of the image can be approximated using a linear array since the frequency content of the probability map will be close to ideal. In contrast, tampering changes the frequency content of the probability map and the frequencies between the ideal and real case will result in a lower similarity measure. | |||
Show FFTs of ideal maps | |||
=== Windowing === | === Windowing === | ||
Revision as of 22:33, 19 March 2013
Back to Psych 221 Projects 2013
Introduction
Background
-CFA Interpolation and why necessary -Effect of tampering on CFA interpolation
Methods
The expectation-maximization algorithm calculated an estimation of the linear model used to interpolate the Bayer array and generated the per-pixel probability that each sample pixel belonged to the calculated linear interpolation filter (need a reference). The probability map was then analyzed for periodic frequencies to determine whether of not the image had been tampered.
Expectation-Maximization Algorithm
Expectation
The expectation step of the algorithm estimates the per-pixel probability that the pixel belongs to the estimated linear model, α. Each color channel is described as
where is the residual error between the actual image and the estimated image. The residual error is approximated using a Gaussian function with zero mean and standard deviation. The probability that each pixel is taken from the estimated linear model is calculated using the probability distribution function of the residual errors:
Using this probability, the per-pixel probability that the image is estimated by the proposed is calculated using Bayes' rule. In these calculations, only the proposed linear model and an unspecified non-linear model were considered as possibilities. The non-linear model M_{2} was estimated to be one over 255;
The maximization step of the algorithm computes a revised α based on minimization of the residual error.
Tamper Detection
Measure of Similarity
Tamper detection was implemented by calculating the cosine similarity between an ideal probability map and the estimated probability map. The cosine similarity function is given by:
where P} is the Fourier transform of the calculated probability map and S is the Fourier transform of the ideal probability map for each channel. The similarity between the ideal and calculated probability maps determines whether or not the image has been modified; high similarity indicates that the given CFA interpolation of the image can be approximated using a linear array since the frequency content of the probability map will be close to ideal. In contrast, tampering changes the frequency content of the probability map and the frequencies between the ideal and real case will result in a lower similarity measure.
Show FFTs of ideal maps
Windowing
Given that the tampered areas in the training images were small areas of the main image, a sliding window was used to calculate the measure of similarity for segmented blocks of the image. Each window had a 50% overlap with it's neighbors.
Threshold
Results
Conclusions
- Buggy areas: places with large areas of pixels with the same pixel so that the probability map shows the same value for a large swath - Automation: normalization between different images - Use information about the CFA to determine tampering (i.e. threshold adjustment done based on CFA interpolation technique - Classification using frequency information between channels instead of processing them differently Could give better estimate in the case of CFA interpolators across multiple channels or get better estimate of frequency across different channels
References - Resources and related work
References
Software