my code:
clc;clear; %
%read image
I = imread('test1.jpg');
figure
imshow(I)
title('Original Image')
BW = imbinarize(I,'adaptive','ForegroundPolarity','dark','Sensitivity',0.4)
figure
imshow(BW)
title('Binary Version of Image')
Command window:
Warning: Image is too big to fit on screen; displaying at 33%
> In images.internal.initSize (line 71)
In imshow (line 336)
In imbinarize (line 11)
Attempt to execute SCRIPT imbinarize as a function:
G:\LAB\MATLAB code ImageProcessing\testing code\imbinarize.m
Error in imbinarize (line 14)
BW = imbinarize(I,'adaptive','ForegroundPolarity','dark','Sensitivity',0.4)