

ImageDir = '';

fp = fopen([ImageDir 'lensFitting.html'],'w');

fprintf(fp,'<html><body>\n');

fprintf(fp, ' <h1 align="center">Supplmentary Materials for CVPR 2012 Paper ID 0476:<br>Image Enhancement using Calibrated Lens Simulations</h1>\n');

fprintf(fp, ' <h2>Please mouse over (but don&#39;t click!) the colored underlined link to blink between results or input images.  If');
fprintf(fp, ' the mouse-over links do not work, please make sure javascript is enabled.');

fprintf(fp, ' <p>To better view the results we recommended using a zooming tool like <a href="http://grail.cs.washington.edu/software-data/snoop/snoop.exe" target="_blank">snoop</a>\n');
fprintf(fp, ' </p></h2>\n');

fprintf(fp, '<p><a href="#Lens58202"><h2> #58202 6mm Micro Video Lens </h2></a>');
fprintf(fp, '<a href="#Lens54857"><h2> #54857 18mm Double Gauss Lens</h2></a>');
fprintf(fp, '<a href="#Lens54854"><h2> #54854 12mm Micro Video Lens </h2></a>');
fprintf(fp, '<a href="#spectra"><h2> Cross Validation at different spectrums </h2></a>');
fprintf(fp, '<a href="#Comparison"><h2>Comparison with other works</h2></a></p>\n');

fprintf(fp,'<hr width=100%%>\n');

%% 58202 Measured PSF 
fprintf(fp,'<a name="Lens58202"></a><h1>#58202 6mm Micro Video Lens.</h1>\n');

fprintf(fp,'<h2> Lens Precription Calibration at 279mm</h2>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img0-unfit'  'img0-fit' };
exp(i).img = 'measuredPSFs/edmund58202measuredPSFArray.bmp';
exp(i).title = 'MeasuredPSFs';
exp(i).id = 'img0';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'measuredPSFs/edmund58202unfittedPSFArray.bmp';
exp(i).title = 'unfitted PSFs';
exp(i).id = 'img0-unfit';
exp(i).display = 0;

i = i + 1;
exp(i).img = 'measuredPSFs/edmund58202fittedPSFArray.bmp';
exp(i).title = 'fitted PSFs';
exp(i).id = 'img0-fit';
exp(i).display = 0;


result_html(fp,exp);     

%% 58202 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation Across the Image Plane</h2>\n');

fprintf(fp,'<h3> Original Image is Taken at 279mm. Fit Lens Prescription at 279mm</h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img1-unfit'  'img1-fit' ,'img1-measure' };
exp(i).img = 'cross-validate/sameImagePlane/crops12orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img1';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops12unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'img1-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops12fit.bmp';
exp(i).title = 'deconvolved by fitted PSF';
exp(i).id = 'img1-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops12measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img1-measrue';
exp(i).display = 1;

result_html(fp,exp);

%% 58202 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation at Different Depths</h2>\n');
fprintf(fp,'<h3> Original Image is Taken at 279mm. Fit Lens Prescriptions at 279mm and 368mm</h3>\n');
exp = [];
i = 0;

i = i + 1;
exp(i).compare = {'img2-unfit'  'img2-fit368' 'img2-fit279' 'img2-measure' };
exp(i).img = 'cross-validate/diffImagePlane/crops26orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img2';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops26unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'img2-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops26fit368mm.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 368mm';
exp(i).id = 'img2-fit368';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops26fit279mm.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 279mm';
exp(i).id = 'img2-fit279';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops26measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img2-measrue';
exp(i).display = 1;

result_html(fp,exp);

%% 58202 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Natural Images </h2>\n');

%News Paper
fprintf(fp,'<h3> News Paper Image Taken at 279mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img3-unfit'  'img3-fit' ,'img3-measure' };
exp(i).img = 'true-images/58202/realResults60_aorig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img3';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/realResults60_fitted279.bmp';
exp(i).title = 'deconvolved by fitted PSF at 279mm';
exp(i).id = 'img3-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/realResults60_fitted368.bmp';
exp(i).title = 'deconvolved by fitted PSF at 368mm';
exp(i).id = 'img3-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/crops60measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img3-measrue';
exp(i).display = 1;

result_html(fp,exp);

%Magazine
fprintf(fp,'<h3> Magazine Cover Image Taken at 279mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img4-unfit'  'img4-fit' ,'img4-measure' };
exp(i).img = 'true-images/58202/realResults21_aorig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img4';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/realResults21_fitted279.bmp';
exp(i).title = 'deconvolved by fitted PSF at 279mm';
exp(i).id = 'img4-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/realResults21_fitted368.bmp';
exp(i).title = 'deconvolved by fitted PSF at 368mm';
exp(i).id = 'img4-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/58202/crops21measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img4-measrue';
exp(i).display = 1;

result_html(fp,exp);

fprintf(fp,'<hr width=100%%>\n');
%% 54857 Measured PSF 
fprintf(fp,'<a name="Lens54857"></a><h1>#54857 18mm Double Gauss Lens.</h1>\n');

fprintf(fp,'<h2> Lens Precription Calibration at 863 mm</h2>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img5-unfit'  'img5-fit' };
exp(i).img = 'measuredPSFs/doubleGaussmeasuredPSFArray.bmp';
exp(i).title = 'MeasuredPSFs';
exp(i).id = 'img5';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'measuredPSFs/doubleGaussunfittedPSFArray.bmp';
exp(i).title = 'unfitted PSFs';
exp(i).id = 'img5-unfit';
exp(i).display = 0;

i = i + 1;
exp(i).img = 'measuredPSFs/doubleGaussfittedPSFArray.bmp';
exp(i).title = 'fitted PSFs';
exp(i).id = 'img5-fit';
exp(i).display = 0;


result_html(fp,exp);    

%% 54857 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation Across the Image Plane</h2>\n');

fprintf(fp,'<h3> Original Image is Taken at 863mm. Fit Lens Prescription at 863mm</h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img6-unfit'  'img6-fit' ,'img6-measure' };
exp(i).img = 'cross-validate/sameImagePlane/crops275orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img6';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops275unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'img6-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops275fit.bmp';
exp(i).title = 'deconvolved by fitted PSF';
exp(i).id = 'img6-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops275measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img6-measrue';
exp(i).display = 1;

result_html(fp,exp);
 

%% 54857 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation at Different Depths</h2>\n');
fprintf(fp,'<h3> Original Image is Taken at 863mm. Fit Lens Prescriptions at 863mm and 1282mm</h3>\n');
exp = [];
i = 0;

i = i + 1;
exp(i).compare = {'img7-unfit'  'img7-fit1282' 'img7-fit863' 'img7-measure' };
exp(i).img = 'cross-validate/diffImagePlane/crops39orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img7';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops39unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'img7-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops39fit1282.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 1282mm';
exp(i).id = 'img7-fit1282';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops39fit863.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 863mm';
exp(i).id = 'img7-fit863';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops39measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img7-measrue';
exp(i).display = 1;

result_html(fp,exp);
     

%% 54857 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Natural Images </h2>\n');

%News Paper
fprintf(fp,'<h3> News Paper Image Taken at 863mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img8-unfit'  'img8-fit' ,'img8-measure' };
exp(i).img = 'true-images/54857/realResults36_aorig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img8';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/realResults36_fitted863.bmp';
exp(i).title = 'deconvolved by fitted PSF at 863mm';
exp(i).id = 'img8-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/realResults36_fitted1282.bmp';
exp(i).title = 'deconvolved by fitted PSF at 1282mm';
exp(i).id = 'img8-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/crops36measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img8-measrue';
exp(i).display = 1;

result_html(fp,exp);

%Magazine
fprintf(fp,'<h3> Magazine Cover Image Taken at 863mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'img9-unfit'  'img9-fit' ,'img9-measure' };
exp(i).img = 'true-images/54857/realResults55_aorig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'img9';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/realResults55_fitted863.bmp';
exp(i).title = 'deconvolved by fitted PSF at 863mm';
exp(i).id = 'img9-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/realResults55_fitted1282.bmp';
exp(i).title = 'deconvolved by fitted PSF at 1282mm';
exp(i).id = 'img9-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54857/crops55measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'img9-measrue';
exp(i).display = 1;

fprintf(fp,'<h4> *The structural pattern on the magazine cover image is the printing pattern.</h4>\n');   
result_html(fp,exp);

fprintf(fp,'<hr width=100%%>\n');

%% 54854 Measured PSF 
fprintf(fp,'<a name="Lens54854"></a><h1>#54854 12mm Micro Video Lens.</h1>\n');

fprintf(fp,'<h2> Lens Precription Calibration at 711 mm</h2>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgA-unfit'  'imgA-fit' };
exp(i).img = 'measuredPSFs/edmund54854measuredPSFArray.bmp';
exp(i).title = 'MeasuredPSFs';
exp(i).id = 'imgA';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'measuredPSFs/edmund54854unfittedPSFArray.bmp';
exp(i).title = 'unfitted PSFs';
exp(i).id = 'imgA-unfit';
exp(i).display = 0;

i = i + 1;
exp(i).img = 'measuredPSFs/edmund54854fittedPSFArray.bmp';
exp(i).title = 'fitted PSFs';
exp(i).id = 'imgA-fit';
exp(i).display = 0;


result_html(fp,exp);    
%% 54854 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation Across the Image Plane</h2>\n');

fprintf(fp,'<h3> Original Image is Taken at 711mm. Fit Lens Prescription at 711mm</h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgB-unfit'  'imgB-fit' ,'imgB-measure' };
exp(i).img = 'cross-validate/sameImagePlane/crops4orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgB';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops4unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'imgB-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops4fit.bmp';
exp(i).title = 'deconvolved by fitted PSF';
exp(i).id = 'imgB-fit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/sameImagePlane/crops4measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'imgB-measrue';
exp(i).display = 1;

result_html(fp,exp);
 

%% 54854 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Cross Validation at Different Depths</h2>\n');
fprintf(fp,'<h3> Original Image is Taken at 842mm. Fit Lens Prescriptions at 711mm and 842mm</h3>\n');
exp = [];
i = 0;

i = i + 1;
exp(i).compare = {'imgC-unfit'  'imgC-fit842' 'imgC-fit711' 'imgC-measure' };
exp(i).img = 'cross-validate/diffImagePlane/crops10orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgC';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops10unfit.bmp';
exp(i).title = 'deconvolved by unfitted PSF';
exp(i).id = 'imgC-unfit';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops10fit842.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 842mm';
exp(i).id = 'imgC-fit842';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops10fit711.bmp';
exp(i).title = 'deconvolved by fitted PSF. Fit at 711mm';
exp(i).id = 'imgC-fit711';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'cross-validate/diffImagePlane/crops10measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'imgC-measrue';
exp(i).display = 1;

result_html(fp,exp);
     

%% 54854 Cross Validation Across the Image Plane
fprintf(fp,'<h2> Natural Images </h2>\n');

%News Paper
fprintf(fp,'<h3> News Paper Image Taken at 572mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgD-fit711'  'imgD-fit842' ,'imgD-measure' };
exp(i).img = 'true-images/54854/realResults8_aorig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgD';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/realResults8_fitted711.bmp';
exp(i).title = 'deconvolved by fitted PSF at 711mm';
exp(i).id = 'imgD-fit711';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/realResults8_fitted842.bmp';
exp(i).title = 'deconvolved by fitted PSF at 842mm';
exp(i).id = 'imgD-fit842';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/crops8measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'imgD-measrue';
exp(i).display = 1;

result_html(fp,exp);

%Magazine
fprintf(fp,'<h3> Magazine Cover Image Taken at 572mm. </h3>\n');
exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgE-fit711'  'imgE-fit842' ,'imgE-measure' };
exp(i).img = 'true-images/54854/crops4orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgE';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/crops4fit711.bmp';
exp(i).title = 'deconvolved by fitted PSF at 711mm';
exp(i).id = 'imgE-fit711';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/crops4fit842.bmp';
exp(i).title = 'deconvolved by fitted PSF at 842mm';
exp(i).id = 'imgE-fit842';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'true-images/54854/crops4measure.bmp';
exp(i).title = 'deconvolved by measured PSF';
exp(i).id = 'imgE-measrue';
exp(i).display = 1;
 
result_html(fp,exp);
fprintf(fp,'<hr width=100%%>\n');

%% Spectrunm 
fprintf(fp,'<a name="spectra"></a><h1>Cross Validation at Different Spectrums</h1>\n');

fprintf(fp,'<a name="Comparison"></a><h3>The original image is taken under incandecent+fluorescent light. Fit the lens prescription using the measurement under white light (RGB LED). Compute PSF using different spectrums</h2>\n');


exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgH-F' 'imgH-FI'  'imgH-W'  };
exp(i).img = 'crossSpectrum/crops62orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgH';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'crossSpectrum/crops62fitbyfluorescent.bmp';
exp(i).title = 'Compute PSF using measured tungsten + fluorescent spectrum';
exp(i).id = 'imgH-F';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'crossSpectrum/crops62fitbyfluorescentInternet.bmp';
exp(i).title = 'Compute PSF using approximate tungsten + fluorescent spectrum [1]';
exp(i).id = 'imgH-FI';
exp(i).display = 1;

i = i + 1;
exp(i).img ='crossSpectrum/crops62fitbyWhite.bmp';
exp(i).title = 'Compute PSF using white light spectrum';
exp(i).id = 'imgH-W';
exp(i).display = 1;

result_html(fp,exp);  

fprintf(fp, '<p><a href="http://www.cis.rit.edu/research/mcsl2/online/CIE/Fluorescents.htm">[1] We use fluorescent spectrum data (F1) from Center for Imaging Sceince as the approximation </a></p>');

fprintf(fp,'<a name="Comparison"></a><h3>The original image is taken under incandecent light. Fit the lens prescription using the measurement under white light (RGB LED). Compute PSF using different spectrums</h2>\n');


exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgG-TS' 'imgG-TSI' 'imgG-W'  };
exp(i).img = 'crossSpectrum/crops61orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgG';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'crossSpectrum/crops61fitbyTungSten.bmp';
exp(i).title = 'Compute PSF using measured tungsten spectrum';
exp(i).id = 'imgG-TS';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'crossSpectrum/crops61fitbyTungStenInternet.bmp';
exp(i).title = 'Compute PSF using approximate tungsten spectrum[2]';
exp(i).id = 'imgG-TSI';
exp(i).display = 1;

i = i + 1;
exp(i).img ='crossSpectrum/crops61fitbyWhite.bmp';
exp(i).title = 'Compute PSF using white light spectrum';
exp(i).id = 'imgG-W';
exp(i).display = 1;

result_html(fp,exp); 

fprintf(fp, '<p><a href="http://www.cis.rit.edu/research/mcsl2/online/CIE/D65_and_A.htm">[2] We use tungsten spectrum data (D65) from Center for Imaging Sceince as the approximation </a></p>');


fprintf(fp,'<hr width=100%%>\n');

%% Comparison
fprintf(fp,'<a name="Comparison"></a><h1>Comparison to other works</h1>\n');

exp = []; 
i = 0;

i = i + 1;
exp(i).compare = {'imgF-PS'  'imgF-PTLens'  'imgF-Jia1' 'imgF-Jia2' 'imgF-Ours' 'imgF-GNT' };
exp(i).img = 'comparison/orig.bmp';
exp(i).title = 'Original Image';
exp(i).id = 'imgF';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'comparison/PS.bmp';
exp(i).title = 'Photoshop';
exp(i).id = 'imgF-PS';
exp(i).display = 1;

i = i + 1;
exp(i).img = 'comparison/PTLens.bmp';
exp(i).title = 'PTLens';
exp(i).id = 'imgF-PTLens';
exp(i).display = 1;


i = i + 1;
exp(i).img =  'comparison/hqdeblur.bmp';
exp(i).title = 'High quality motion deblur [1]';
exp(i).id = 'imgF-Jia1';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'comparison/robustdeblur.bmp';
exp(i).title = 'Robust motion deblur [2]';
exp(i).id = 'imgF-Jia2';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'comparison/fit.bmp';
exp(i).title = 'Ours';
exp(i).id = 'imgF-Ours';
exp(i).display = 1;

i = i + 1;
exp(i).img =  'comparison/measure.bmp';
exp(i).title = 'Deblurred by measured PSF';
exp(i).id = 'imgF-GNT';
exp(i).display = 1;

result_html(fp,exp);    

fprintf(fp,'<p><a href="http://www.cse.cuhk.edu.hk/~leojia/projects/motion_deblurring/index.html">[1] Qi Shan, Jiaya Jia, and Aseem Agarwala, High-quality Motion Deblurring from a Single Image, Siggraph 2008</a></p>');
fprintf(fp,'<a href="http://www.cse.cuhk.edu.hk/~leojia/projects/robust_deblur/">[2] L. Xu and J. Jia, Two-pphase kernel estimation for roubust motion deblurring, ECCV 2010</a>');
fprintf(fp,'</body></html>\n');
