Using python function in matlab
5 次查看(过去 30 天)
显示 更早的评论
I'm trying to call the following opencv function on matlab
so I did the following:
img, background = py.cv2_rolling_ball.subtract_background_rolling_ball(hardsperm, 30,pyargs('light_background','True'), pyargs('use_paraboloid', 'False'),pyargs('do_presmooth','True');
but apparently there's some syntatic errors in my code and matlab wouldn't recognize the function call. Could someone point me in the right direction on what I should change to make it work?
0 个评论
回答(1 个)
Rohit Pappu
2020-11-25
The closing ) is missing in the above code. The correct code would be
img, background = py.cv2_rolling_ball.subtract_background_rolling_ball(hardsperm, 30,pyargs('light_background','True'), pyargs('use_paraboloid', 'False'),pyargs('do_presmooth','True'));
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!