Rev 128 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
clear('all');
close('all');
clc;
p = Projector(1);
c = Camera(0,0);
c.setCameraSettings(0, 33.333);
c.startCapture;
response = zeros(256, 1);
for i=0:255
display(i);
I = uint8(cat(3, i, i, i));
p.displayTexture(I);
pause(0.12);
c.trigger;
f = c.getFrame;
f2 = demosaic(f,'rggb');
response(i+1) = mean(mean(mean(f(800:2100, 500:2400, 1:3), 3)));
end
figure;
plot(response);