mahmoudnafifi / Interactive_WB_correction

Reference code for the paper Interactive White Balancing for Camera-Rendered Images Mahmoud Afifi and Michael S. Brown. In Color and Imaging Conference (CIC), 2020.
28 stars 4 forks source link

Error when running code #1

Open torsadesdu opened 7 months ago

torsadesdu commented 7 months ago

Hi, I am trying to run the matlab demo but it is giving these errors, are you able to advise? thank you.

  1. In demo.m: Unrecognized function or variable 'out_of_gamut_clipping'.

Error in demo (line 32) I_gw = out_of_gamut_clipping(reshape(reshape(im2double(I),[],3) * ...

Unrecognized function or variable 'phi'.

Error in demo (line 39) reshape(phi(reshape(I,[],3)) * M,[sz(1),sz(2),sz(3)]));

  1. in gui\main.m : Unrecognized function or variable 'PHI'.

Error in main>autoWB_Callback (line 95) reshape(PHI(reshape(I,[],3)) * M,[sz(1),sz(2),sz(3)]));

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in main (line 28) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)main('autoWB_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

mahmoudnafifi commented 7 months ago

Hi, please run install_.m first.

torsadesdu commented 7 months ago

Thanks for the prompt reply, that was not in the readme file.

mahmoudnafifi commented 7 months ago

Apologize. Will update the readme.