Inputimage=imread('im.jpg');
%% Convert to gray scale
Inputimage=rgb2gray(Inputimage);
% Convert to binary image
T = adaptthresh(Inputimage, 0.4);
BW = imbinarize(Inputimage,T);
figure(2)
imshow(Inputimage);

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 12 日

0 投票

2 件のコメント

Mohamed Mansour
Mohamed Mansour 2018 年 12 月 12 日
how i can use it in 2015a ??
Image Analyst
Image Analyst 2018 年 12 月 12 日
You can't. You'll have to write your own if you don't want to upgrade.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

製品

リリース

R2015a

質問済み:

2018 年 12 月 12 日

コメント済み:

2018 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by