How do I use this function ''function [BW, threshold] = im2bw_ent(IM)''???? I am new in MATLAB, and I dont know what should I do for this code???
2 ビュー (過去 30 日間)
古いコメントを表示
How do I use this function ''function [BW, threshold] = im2bw_ent(IM)''???? I am new in MATLAB, and I dont know what should I do for this code???
回答 (1 件)
Image Analyst
2015 年 12 月 26 日
I imagine you'd call it like this:
IM = imread('moon.tif');
subplot(1,2,1);
imshow(IM);
[BW, threshold] = im2bw_ent(IM);
subplot(1,2,2);
imshow(BW);
message = sprintf('Image thresholded at %.3f', threshold);
uiwait(helpdlg(message));
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!