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

Veröffentlicht am: 13 Juni 2020
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Boundary Extraction | EROSION | MATLAB Image Processing (with Complete Code) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Knowledge Amplifier 13 Juni 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,943 Mal angesehen und es wurde von 19 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!