function config_file_ViewSyn_balloons_cam4(fileConfigName, fileCalibParams, fileColorInL, fileColorInR, fileDepthInL, fileDepthInR, nframes, fileSynthOut)

% Usage:
% config_file_ViewSyn_champagne40('configfile.cfg', 'path\cam_param_champ.txt', 'path\039.yuv', 'path\041.yuv', 'path\depth_039.yuv', 'path\depth_041.yuv', 10, 'champagne_virtual_040.yuv');
 


fid = fopen(fileConfigName, 'wt');
       
    fprintf(fid, 'DepthType                  0\n' );                   % nagoya_mode
    fprintf(fid, 'SourceWidth                640\n' );                % Input frame width
    fprintf(fid, 'SourceHeight               480\n' );                 % Input frame height
    fprintf(fid, 'StartFrame                 0\n' );                   % Starting frame 
    fprintf(fid, 'TotalNumberOfFrames        %s\n', num2str(nframes) );% Total number of input frames 
    fprintf(fid, 'LeftNearestDepthValue      2342.2485325395\n' );         % Nearest depth value of left image from camera or the origin of 3D space (website data -camilo)
    fprintf(fid, 'LeftFarthestDepthValue     12491.9921735441\n' );         % Farthest depth value of left image from camera or the origin of 3D space (website data -camilo)
    fprintf(fid, 'RightNearestDepthValue     2342.2485325395\n' );         % Nearest depth value of right image from camera or the origin of 3D space (website data -camilo)
    fprintf(fid, 'RightFarthestDepthValue    12491.9921735441\n' );         % Farthest depth value of right image from camera or the origin of 3D space (website data -camilo)
    fprintf(fid, 'CameraParameterFile        %s\n', fileCalibParams ); % Name of text file which includes real and virtual camera parameters
    fprintf(fid, 'LeftCameraName             param_ak47\n' );       % Name of real left camera
    fprintf(fid, 'VirtualCameraName          param_ak48\n' );       % Name of virtual camera
    fprintf(fid, 'RightCameraName            param_ak49\n' );       % Name of real right camera
    fprintf(fid, 'LeftViewImageName          %s\n', fileColorInL);     % Name of left input video
    fprintf(fid, 'RightViewImageName         %s\n', fileColorInR);     % Name of right input video
    fprintf(fid, 'LeftDepthMapName           %s\n', fileDepthInL);     % Name of left depth map video
    fprintf(fid, 'RightDepthMapName          %s\n', fileDepthInR);     % Name of right depth map video
    fprintf(fid, 'OutputVirtualViewImageName %s\n', fileSynthOut );    % Name of output virtual view video

    fprintf(fid, 'ColorSpace                 0\n' );               % 0...YUV, 1...RGB
    fprintf(fid, 'Precision                  2\n' );               % 1...Integer-pel, 2...Half-pel, 4...Quater-pel
    fprintf(fid, 'Filter                     1\n' );               % 0...(Bi)-linear, 1...(Bi)-Cubic, 2...MPEG-4 AVC
    fprintf(fid, 'BoundaryNoiseRemoval       1\n' );		       % Boundary Noise Removal: Updated By GIST
    fprintf(fid, 'SynthesisMode              1\n' );               % 0...General, 1...1D parallel
    fprintf(fid, 'ViewBlending               1\n' );               % 0...Blend left and right images, 1...Not Blend

fclose(fid);
       
    fprintf( ' %s \n', fileConfigName);  