Boundary Extraction | EROSION | MATLAB Image Processing (with Complete Code)

Pubblicato il: 13 giugno 2020
sul canale di: Knowledge Amplifier
1,943
19

Morphological operations are methods for processing binary images based on shapes.
These operations take a binary image as input, and return a binary image as output.
The value of each pixel in the output image is based on the corresponding input pixel and its neighbors. By choosing the neighborhood
shape appropriately, you can construct a morphological operation that is
sensitive to specific shapes in the input image.

Erosion removes pixels on object boundaries (changes them from on to off).
Algorithm used Boundary Extraction of one object using Image Morphology:
Step 1:
Read the image and convert it to grayscale
Step 2:
Select an appropriate Structuring Element
Step 3:
Perform Image Erosion (Image Shrinking)
Step 4:
Subtract the eroded image from the original

Code:

%%
%Reading the Image
clc
clear all
close all
c=webcam;
BK=c.snapshot;
clear c;
I=rgb2gray(BK);
%%
%Structural Element
SE=strel('disk',5);
B=imerode(I,SE);
B=I-B;
%%
%Plotting the Images
subplot(1,2,1);
imshow(BK);
title('Original Image');
subplot(1,2,2);
imshow(B);
title('Boundary Detection');

Prerequisite:
Image Erosion | MATLAB (with Animation)
   • Image Erosion | MATLAB (with Animation)  

#MATLAB #ImageProcessing #EROSION #MorphologicalImageProcessing


In questa pagina del sito puoi guardare il video online Boundary Extraction | EROSION | MATLAB Image Processing (with Complete Code) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Knowledge Amplifier 13 giugno 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,943 volte e gli è piaciuto 19 spettatori. Buona visione!