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 Center および MATLAB AnswersBasic Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0