clc ;
clear ;

load input_box ;
v1_img = round(view1_img*204) ; 
v2_img = round(view2_img*204) ; 

gap = zeros(size(v1_img,1),20) ;
fid = fopen('compare_sequence.dat','w') ;
img = [v1_img gap v1_img] ;
fwrite(fid,img','uint8') ;
for i = 1 : 3
    s = ['load output' num2str(i)] ;
    eval(s) ;
    from1and2 = round(novel_view_from1and2*204) ;
    img = [v1_img gap from1and2] ;
    fwrite(fid,img','uint8') ;
    fwrite(fid,img','uint8') ;
end
load output4 ;
from1and2 = round(novel_view_from1and2*204) ;
img = [v1_img gap from1and2] ;
fwrite(fid,img','uint8') ;
img = [v2_img gap from1and2] ;
fwrite(fid,img','uint8') ;
for i = 5 : 7
    s = ['load output' num2str(i)] ;
    eval(s) ;
    from1and2 = round(novel_view_from1and2*204) ;
    img = [v2_img gap from1and2] ;
    fwrite(fid,img','uint8') ;
    fwrite(fid,img','uint8') ;
end
img = [v2_img gap v2_img] ;
fwrite(fid,img','uint8') ;
fclose(fid) ;
    

