Undefined function or variable 'adaptthresh'

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);

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

产品

版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by