
camerano = 1;
nameMTV='CTS.MTV0550';

bckfilename = ['../data/bgr' nameMTC '.dat'];




CameraON(nameMTV);

animage =  GetImage(nameMTV);

sumimages = animage;

fprintf(1,'Camera %s: Got 1st Image\n',nameMTV)


surface(animage);
fprintf(1,'Camera %s: Plotted 1st Image\n',nameMTV)


for i=1:20

  animage =  GetImage(nameMTV);
  sumimages = sumimages + animage;
  avgimage = sumimages/(1.+ i);
  
  
  clf;
  
  
%  plot(sum(avgimage));
  contourf(avgimage);
%  surface(avgimage);
  
  fprintf(1,'%f %f %f %f\n',avgimage(10),avgimage(20),avgimage(30),avgimage(40));
  fprintf(1,'Camera %s: Plotted %d Image\n',nameMTV, i+1);
  
  pause(0.5);
  
end

