Skip to content

Commit 744b92d

Browse files
author
Manish Kumar
committed
2 parents 3ec8299 + b0bc8dc commit 744b92d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Image_Processing/src/binary_image.m renamed to Image_Processing/src/Binary_Image.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
clear all;
44

5-
%Setting the directory
5+
%Setting up the directory
66
fpath1=fullfile('C:\Users\Manish (Master)\Desktop\images'); % Add your directory
77
addpath(fpath1);
88
basefile=sprintf('*.png'); % Add format of image
@@ -27,7 +27,7 @@
2727

2828
% Conversion of GRAY-SCALE to BINARY IMAGE
2929
Binary_Image = imbinarize(Gray_Scale,'adaptive','ForegroundPolarity','dark','Sensitivity',0.4);
30-
% You can use different methods like instead of adaptive you can use global(by defauult).
30+
% You can use different methods like instead of adaptive you can use global(by default).
3131
% Foreground Polarity can be dark or bright (refer documentaion for more info)
3232
% Sensitivity can be from 0 to 1 , by default it is 0.5
3333
figure
@@ -40,4 +40,4 @@
4040
% 1 represents white and 0 represents black.
4141
% A binary image is a digital image that has only two possible values for each pixel.
4242
% In the case of gray scale image,
43-
% for example 8-bit gray scale image (2^8=256) pixel value may vary between 0 to 256.
43+
% for example 8-bit gray scale image (2^8=256) pixel value may vary between 0 to 256.

0 commit comments

Comments
 (0)