View License

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

» Watch video

Highlights from
Livewire (Intelligent Scissors) ROI Creation

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0
5.0 | 5 ratings Rate this file 10 Downloads (last 30 days) File Size: 13.4 KB File ID: #41084 Version: 1.25
image thumbnail

Livewire (Intelligent Scissors) ROI Creation

by

 

02 Apr 2013 (Updated )

Implementation of the livewire algorithm for intelligent ROI drawing. Can be used instead of ROIPOLY

| Watch this File

File Information
Description

LIVEWIRE.m
-------------
Interactive GUI for drawing regions of interest (ROIs). Has a similar interface to ROIPOLY. However, the delineation of complex and irregular objects is supported by the livewire or intelligent scissors algorithm [1]: Instead of connection user-selected anchor points with straight lines, a minimum cost path is chosen. Low costs can be found along image gradients (potential object boundaries).
[1] MORTENSEN, E. N.; BARRETT, W. A. Intelligent scissors for image composition. In: SIGGRAPH '95: Proceedings of the 22nd annual conference on Computer graphics and interactive techniques. New York, NY, USA: ACM Press, 1995. p. 191:198.

MATLAB release MATLAB 8.0 (R2012b)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
18 Aug 2016 David Molony  
26 Jun 2016 mcdull hall

Thank you for the code:)

10 Jun 2016 Shima

Shima (view profile)

Hi,

There is not such file named "please_mex_me.m" in the zipped submission. I tried to run the livewire on my image and it gave me below error:

Trying to compile mex file...Undefined function or variable "dXData".

Error in livewire/fMotionFcn (line 353)
if (isempty(dXData)) || (sum(abs(iPX(:))) == 0), return, end

Error using dos
Error while evaluating figure WindowButtonMotionFcn

Undefined function or variable "dXData".

Error in livewire/fMotionFcn (line 353)
if (isempty(dXData)) || (sum(abs(iPX(:))) == 0), return, end

Error using dos
Error while evaluating figure WindowButtonMotionFcn

Comment only
23 May 2016 Christian Wuerslin

Hi Zhu,
do you mean that after loading the cameraman image and starting the livewire function you get that error? Are you sure that this is the first error that is thrown?

Comment only
24 Apr 2016 Zhu may

After using the example,it always tells me that "
Undefined function or variable "dXData".

Error in livewire/fMotionFcn (line 353)
if (isempty(dXData)) || (sum(abs(iPX(:))) == 0), return, end"
Does someone know why?

23 Apr 2014 Mehmet Erdem

thanks for the great program. But after i plant seeds (or anchors), the output is the background. What should I do to get the extracted part?

01 May 2013 Valeria Marin

buen material

Comment only
18 Apr 2013 Jehan Ziad Ghafuri  
Updates
29 Apr 2013 1.1

It's faster!

12 Mar 2015 1.2

Closed memory leaks

11 Aug 2016 1.25

Only updated description in response to comment. There is no 'pleas_mex_me.m' file any more. Instead, the livelier function tries to compile the files automatically.

Contact us