Counting number of Gear Teeth | Digital Image Processing using MATLAB

Опубликовано: 06 Октябрь 2024
на канале: Knowledge Amplifier
1,308
32

Image:
https://github.com/SatadruMukherjee/D...

Code:
clc
clear all
close all
warning off
x=rgb2gray(imread('Gear.PNG'));
nexttile;
imshow(x);
title('Input Image');
ms=bwareaopen(imbinarize(x),10);
nexttile;
imshow(ms);
title('Binary Image');
mg=bwconvhull(ms,'objects');
nexttile;
imshow(mg);
title('Image after applying convex hull');
mak=imerode(mg,strel('disk',10));
nexttile;
imshow(mak);
title('Image after applying erosion');
nexttile;
ags=ms;
ags(mak)=0;
imshow(ags)
title('Teeth Part');
[l,n]=bwlabel(ags);
disp(n);

Learn Complete Machine Learning & Data Science using MATLAB:
   • Data Science & Machine Learning using...  

Learn Digital Signal Processing using MATLAB:
   • Digital Signal Processing Matlab  

Learn Complete Image Processing & Computer Vision using MATLAB:
   • Digital Image Processing using MATLAB  

🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY YOUTUBE CHANNEL


#DigitalImageProcessing #MATLAB #ComputerVision