loicland / cut-pursuit

C++ implementation for the cut pursuit algorithm, with Matlab interfaces
MIT License
77 stars 24 forks source link

Matlab MEX interface compilation error #23

Closed FjedorGaede closed 4 years ago

FjedorGaede commented 5 years ago

When I tried to compile the mex files as provided in the Readme I ran into an error saying that the number of arguments of the function call in L0_cut_pursuit_segmentation.cpp and L0_cut_pursuit.cpp did not match. I found out that the arguments cutoff and weight_decay were not set. I just changed that. Additionally, I had to fix the example in the readme and also provided more variables. I find this way more easy to understand the call than put in numbers. :) Please check this merge request.

Best Regrads Fjedor

BTW: This is my first pull request so if something did not work as expected please contact me :)

loicland commented 4 years ago

Great! Thanks, I had focused more on the python interface.