active contour segmentation

8
Image Segmentation Active Contours By:- Abhishek Tiwari For my complete course on Image processing using MATLAB , visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Upload: nishant-jain

Post on 10-Jul-2015

388 views

Category:

Education


12 download

TRANSCRIPT

Page 1: Active contour segmentation

Image SegmentationActive Contours

By:- Abhishek Tiwari

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 2: Active contour segmentation

Introduction

Active contours, also known as snakes, is a framework for getting object

outline contour

The framework minimizes an energy associated to the current contour as a

sum of internal and external energies

External energy expression is derived such that it is minimum at object boundary

Internal energy regulates the shape of contour, controlling its curvature, shape

regularity, etc.

More energy terms can be introduced as per user application such as initializing

multiple snakes and defining attraction energy between them, etc.

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 3: Active contour segmentation

Advantages & Limitations

Advantages of snakes

Autonomous and self-adapting in their search for minimal energy

Can track moving objects in temporal as well as spatial direction

Custom energies can be defined to enhance contour evolution

Limitations of snakes

Can get stuck in local minima states

Can miss minute features in the process of minimizing whole contour energy

May require higher computation time

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 4: Active contour segmentation

Contour Evolution Example

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 5: Active contour segmentation

Contour Evolution Example

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 6: Active contour segmentation

Our Implementation

clear all; close all; clc;

% Read an input image

A = imread('coins1.jpg');

% Convert the image to grayscale

A = rgb2gray(A);

% Generate mask for active contour initialization

mask = zeros(size(A));

mask(10:end-10,10:end-10) = 1;

% Segment the image using active contour method

bw = activecontour(A, mask, 300);

% Display original and segmented images

figure, subplot(1, 2, 1), imshow(A), title('Original image');

subplot(1, 2, 2), imshow(bw), title('Segmented image');

Page 7: Active contour segmentation

Results

For my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB

Page 8: Active contour segmentation

Thank YouFor my complete course on Image processing using MATLAB ,

visit https://www.udemy.com/matlabipt/?couponCode=PROMO_MATLAB