File Exchange

image thumbnail

Active Contours: A New Distribution Metric for Image Segmentation

version 1.1 (1.54 MB) by

We present a new distribution metric for image segmentation for active contours.



View License

How can we characterize an image, and does the same characterization yield the same result? In this work, we study one possible characterization, distribution metrics. That is, we assume the desired region of interest has a different probability distribution from its corresponding background. Using this, we present a new distribution metric for image segmentation that arises as a result in prediction theory. Forming a natural geodesic, our metric quantifies “distance” for two density functionals as the standard deviation of the difference between logarithms of those distributions. Using level set methods, we incorporate an energy model based on the metric into the Geometric Active Contour framework. We also demonstrate the algorithm on several challenging medical images, which further ensure the viability of the metric in the context of image segmentation.

For More Information:

Comments and Ratings (9)


Marlon (view profile)


sara (view profile)

how can i run this code on my image/?i just add mfiles to my matlab path


Swati (view profile)

Hi Sandhu. I wish to apply your algorithm on a set of images in time sequence with 30 frames per second for 5 seconds. So there are approx 150 images and i wish the code to detect the same contour in all the images. I am successfull in doing this on one image


when I compile the code, I want visualize only segmented region.
However, the code displays the segmented region in black.
Can you help me?


Gavin (view profile)

Note that this code requires the signal processing toolbox.

Romeil Sandhu

Hi Amandeep,

What you will need to have your own initalization is simply comment out the line where I pre-load a binary mask. Also, when you call "run.m", do not give it a mask variable.

This will invoke "run.m" to call a user initialization program.



Nitin (view profile)


sir, i have checked the same code. Its very good.
But i want to apply the same on ultrasound image. Please tell me how to select the mask and how can i change the mask for a particular image

Eran Ukwatta



Update Description

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video