필터 지우기
필터 지우기

How to use code generated function ?

조회 수: 1 (최근 30일)
RuiQi
RuiQi 2017년 4월 5일
댓글: vcmorini 2017년 8월 2일
I wanted to use the watershed transformation in my visual studio c++ application so I managed to use codegen to generate the c++ code for watershed. It simply is the following code below
function label = segment_watershed(image) %#codegen
label = watershed(image);
end
The problem is that I got a lot of files after the codegen is completed and I am now unsure how I can call the segment_watershed function. There is an example folder with main.cpp and main.h files in it but when I used them in visual studio I get the following error saying that "libmwimregionalmax.h" cannot be found. I can only find libmwimregionalmax.dll.
Would anyone kindly please guide me on how I can do this ? There are no tutorials on this on MATLAB.
  댓글 수: 1
vcmorini
vcmorini 2017년 8월 2일
I have the same doubt, RuiQi.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Generating Code에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by