s-gupta / rcnn-depth

Learning Rich Features from RGB-D Images for Object Detection and Segmentation
BSD 2-Clause "Simplified" License
365 stars 150 forks source link

Undefined function 'mex_contour_sides' for input arguments of type 'double' #13

Open l-hang opened 8 years ago

l-hang commented 8 years ago

Hello, following the steps in Readme and when running demo.m this problem arises:

runname =

release

Time taken for computing ng at scale 1: 5.525.

Time taken for computing ng at scale 2: 2.891. Undefined function 'mex_contour_sides' for input arguments of type 'double'.

Error in contours2OWT>fit_contour (line 188) [skel, labels, is_v, is_e, assign, vertices, edges, ...

Error in contours2OWT>create_finest_partition (line 43) contours = fit_contour(double(ws_bw));

Error in contours2OWT (line 25) ws_wt = create_finest_partition(pb_cont, pb_ori);

Error in contours_to_ucm>img2ucm (line 87) [owt2, superpixels] = contours2OWT(E, O);

Error in contours_to_ucm>img2ucm_scale (line 66) [ucm2, times] = img2ucm(E, O, param.mult_Pb, param.sat_sPb, param.nvec, param.dthresh, param.ic_gamma);

Error in contours_to_ucm (line 47) [ucms{s}, times] = img2ucm_scale(E{s}, O{s}, param);

Error in run_all (line 13) [ucm2 ucms] = contours_to_ucm(I, sc, Es, O);

Error in demo (line 6) run_all(I, D, RD, C, out_file);

I don't know where it is possible that the problem exists. How can I figure it out? Many thanks!

s-gupta commented 8 years ago

Did you build mcg using mcg_build(); as indicated in https://github.com/s-gupta/rcnn-depth#building? mex_contour_sides is build from https://github.com/s-gupta/rcnn-depth/blob/master/mcg/src/bsr/mex_contour_sides.cpp in mcg_build().

daf11865 commented 8 years ago

@l-hang @s-gupta I have same issue I built mcg but still got this error any idea?

daf11865 commented 8 years ago

@l-hang I solve by adding mcg/lib to path... it's strange that I add eccv14-code and its subfolder to path doesn't contatin mcg/lib. Hence I need to manually add it. Now it works.