xiaofanglegoc / global-local-affinity-graph

source code for the paper "A global/local affinity graph for image segmentation"
9 stars 6 forks source link

Unknown solve_lrr #2

Open ebenezergr opened 7 years ago

ebenezergr commented 7 years ago

There is not a function called solve_lrr (or variable) when I suppress the "p1" and "p2" for calling assignGraphValue. line 142

gaoyangyiqiao commented 6 years ago

I encountered the same problem. Have you fixed it? @ebenezergr @xiaofanglegoc

xiaofanglegoc commented 6 years ago

try it again, and see what it gives

gaoyangyiqiao commented 6 years ago

I'm using mac with matlab_2017b and tried it again, it gives like below:

Undefined function or variable 'solve_lrr'.

Error demo_anyTypeGraph_combination (line 144)
Z = solve_lrr(feature',0.18);

@xiaofanglegoc

xiaofanglegoc commented 6 years ago

Hi, I have upload the scripts, please try it again

gaoyangyiqiao commented 6 years ago

Thanks a lot. I'll try it as soon as I reach the lab.

gaoyangyiqiao commented 6 years ago

Hi, The scripts fixed that problem, however I encountered a new bug:

Undefined function or variable 'new_row'.
error assignGraphValue (line 24)
   W(new_row,new_col)=W_give(new_row,new_col);

error demo_anyTypeGraph_combination (line 122)
                    W=assignGraphValue(W,W_L0,p2);

Thanks for generous answering. I hope this will not take up too much of your time. @xiaofanglegoc