bwmorph c-mex example

버전 1.0.0.0 (1.89 KB) 작성자: James Tursa
This file is the c-mex equivalent of the example given in the bwmorph.m file comments.
다운로드 수: 1.4K
업데이트 날짜: 2008/3/5

라이선스 없음

bwmorph_example converts the following example taken from the comment section of bwmorph.m to a c-mex file:

BW1 = imread('circles.png');
figure, imshow(BW1)
BW2 = bwmorph(BW1,'remove');
BW3 = bwmorph(BW1,'skel',Inf);
figure, imshow(BW2)
figure, imshow(BW3)

To create the dll, do the following at the MATLAB prompt:

>> mex -setup
(then pick any C/C++ compiler, such as lcc)
>> mex bwmorph_example.c

That's it. Now you are ready to use bwmorph_example as follows:

>> bwmorph_example

Three figures should appear on the screen (shown above), which are the same exact figures that appear when you run the example code directly from the MATLAB workspace.

The purpose of this submission is simply to show how to use these functions and get plots from within a c-mex file.

인용 양식

James Tursa (2024). bwmorph c-mex example (https://www.mathworks.com/matlabcentral/fileexchange/19057-bwmorph-c-mex-example), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Basic Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0