%
% Plots graph for PRNU
% --------------------
% This file plots the graphs for PRNU data collected so that we can
% compare the data collected. The three color channels are plotted
% seperately so that we can analyze the difference across the channels.
% 


clc;clear all;close all;

load variance4;
var4 = variance

load variance10;
var10 = variance

load variance25;
var25 = variance

var = [var10; var4; var25]
var = [var(:,1) mean([var(:,2), var(:,4)]')' var(:,3)]

figure(1);
hold on;
plot([1/10 1/4 1/2.5], var(:,1), 'r');
plot([1/10 1/4 1/2.5], var(:,2), 'g');
plot([1/10 1/4 1/2.5], var(:,3), 'b');
legend('red sensors', 'green sensors', 'blue sensors', 2);
xlabel('Exposure Times (s)');
ylabel('PRNU as percentage of actual values');
title('PRNU for Color Sensors Across Exposure Times');

