%[r1 g1 b1]=imread("v161.jpg");
%[r2 g2 b2]=imread("v162.jpg");

%for k=158:162-1
for k=1:31-1
  eval(sprintf("system(""comparagram r%03d.jpg r%03d.jpg"")",k,k+1));
  %eval(sprintf("system(""mv comparagram.u32.rgb.raw C%03d_%03d.u32.rgb.raw"")",k,k+1);
  fd = fopen("comparagram.u32.rgb.raw","r");
  Cr=fread(fd,[256,256],"uint").';
  Cb=fread(fd,[256,256],"uint").';
  Cg=fread(fd,[256,256],"uint").';
  tvs(sqrt(Cr),sqrt(Cb),sqrt(Cg));
end%for k

