imbinarize...Undefined function

16 ビュー (過去 30 日間)
Qaisar Abbas
Qaisar Abbas 2016 年 11 月 6 日
編集済み: Walter Roberson 2017 年 10 月 10 日
By using MATLAB R2013a.
I am the beginners and forgive me if question is not narrated in well. The Matlab shows " Undefined function 'imbinarize' for input arguments of type 'uint8'" for the following [ imbinarize(I)]
I= imread('cameraman.tif');
>> imshow (I)
>> imbinarize(I)
Undefined function 'imbinarize' for input arguments of type 'uint8'.
Thanks for support
  2 件のコメント
Hassan El-Zahar
Hassan El-Zahar 2017 年 5 月 12 日
this function is defined from 2016 versions and above !
Prasanth
Prasanth 2017 年 10 月 10 日
編集済み: Walter Roberson 2017 年 10 月 10 日
% Convert to BW
threshold = graythresh(I);
BW=im2bw(I,threshold);

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

採用された回答

Jan
Jan 2016 年 11 月 6 日
You can search for "Matlab imbinarize" in the net to find out, that this function belongs to the Image Processing Toolbox. Use the ver command to find out, if you have it installed and a licence for it.
  1 件のコメント
Qaisar Abbas
Qaisar Abbas 2016 年 11 月 19 日
Thank you

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 11 月 6 日
You must have an old release. imbinarize was introduced in R2016a. You can try graythresh() or imquantize().
Or, for an interactive GUI to let you visually set the threshold, see the thresholding app in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Community Treasure Hunt

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

Start Hunting!

Translated by