www.gusucode.com > IPCV_Eval_Kit_R2019a_0ce6858工具箱matlab程序源码 > IPCV_Eval_Kit_R2019a_0ce6858/code/demo_files/I2_03_7_cameraresponse.m
%% 僇儊儔墳摎娭悢(CRF)傪悇掕 %% 6偮偺LDR(Low Dynamic Range)夋憸傪弨旛(F抣偑摨偠偱業岝帪娫偩偗偑堎側傞) files = ["office_1.jpg","office_2.jpg","office_3.jpg",... "office_4.jpg","office_5.jpg","office_6.jpg"]; %% 僇儊儔墳摎娭悢傪悇掕 crf = camresponse(files); %% 擖椡夋憸偺婸搙儗儀儖傪巜掕 range = 0:length(crf)-1; %% RGB偦傟偧傟偺惉暘偱偺僇儊儔墳摎娭悢傪僾儘僢僩 figure, hold on plot(crf(:,1),range,'--r','LineWidth',2); plot(crf(:,2),range,'-.g','LineWidth',2); plot(crf(:,3),range,'-.b','LineWidth',2); xlabel('Log-Exposure'); ylabel('Image Intensity'); title('Camera Response Function'); grid on axis('tight') legend('R-component','G-component','B-component','Location','southeast') % Copyright 2019 The MathWorks, Inc.