Calculating Object Perimeters in Binary Images Using MATLAB

This MATLAB code demonstrates how to find the perimeter of objects in a binary image by applying erosion and image subtraction techniques in digital image processing.

Calculating Object Perimeters in Binary Images Using MATLAB
Knowledge Amplifier
2.9K views β€’ Jul 15, 2020
Calculating Object Perimeters in Binary Images Using MATLAB

About this video

Code:
clc
clear all
close all
warning off
x=imread('circles.png');
imshow(x);
title('Original Image');
se=ones(3,3);
sq=imerode(x,se);
figure;imshow(x-sq);
title('Perimeter Extraction using own code');
figure;imshow(bwperim(x));
title('Perimeter Extraction using MATLAB inbuilt function');
figure;imshow(abs((x-sq)-bwperim(x,8)));
title('Difference between 2 extracted perimeters');

Learn Image Processing using MATLAB:
https://www.youtube.com/watch?v=L9hku2og874&list=PLjfRmoYoxpNostbIaNSpzJr06mDb6qAJ0&index=2&t=9s

#DigitalImageProcessing #MATLAB #ComputerVision

Video Information

Views

2.9K

Likes

31

Duration

5:38

Published

Jul 15, 2020

User Reviews

4.3
(2)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.