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!