3.66667

3.7 | 3 ratings Rate this file 204 downloads (last 30 days) File Size: 17.57 KB File ID: #20997

Image Edge Detection Using Ant Colony Optimization

by Kanchi Tian

 

07 Aug 2008 (Updated 04 Sep 2008)

No BSD License  

Image Edge Detection Using Ant Colony Optimization

Download Now | Watch this File

File Information
Description

A demo program of image edge detection using ant colony optimization.

MATLAB release MATLAB 7.1.0 (R14SP3)
Zip File Content  
Other Files camera128.bmp,
func_ant_colony_image_edge_detection.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
09 Aug 2008 liudaohai liudaohai

Warning: Divide by zero.
> In func_ant_colony_image_edge_detection at 192
error
??? Subscripted assignment dimension mismatch.

Error in ==> func_ant_colony_image_edge_detection at 205
                ant_pos_idx(ant_idx,1) = ant_next_row_idx;

10 Aug 2008 jichao zhao

func_ant_colony_image_edge_detection
Welcome to demo program of image edge detection using ant colony.
Please wait......
??? Undefined function or method 'sum2' for input arguments of type 'double'.

Error in ==> func_ant_colony_image_edge_detection at 72
                v(rr, cc) = sum2(temp00.^2);

09 Sep 2008 zha spenceer

Cannot work!

>> func_ant_colony_image_edge_detection
Welcome to demo program of image edge detection using ant colony.
Please wait......
??? Error using ==> find
Too many input arguments.

Error in ==> C:\MATLAB6p5\work\func_ant_colony_image_edge_detection.m
On line 196 ==> temp = find(cumsum(ant_transit_prob)>=rand(1), 1);

10 Sep 2008 jing tian

I am using Matlab 7.1. It works well, no issue.
Welcome to demo program of image edge detection using ant colony.
Please wait......
Done!

20 Sep 2008 Vivian Tu  
22 May 2009 Mark Hayworth

Takes a long time to run and the "Progress indicators" are not good. It says 4 times that need to wait and then you are Done! but actually this is only within a loop that gets executed 4 times. Then there's more to do after that, so the messages are very deceptive. Then it doesn't even display the original image or the 4 result images despite the fact that it's not a general purpose routine that returns an image - it's a script with input and output filenames hard-coded into it. Come on, at least you could display the images for us! When I did display them (myself) the results weren't even that good, which may be more the fault of the algorithm than the programmer. And there are several misspellings and so-so documentation. Overall, it needs work if it's going to be a nice demo program (for example a way to pick your own input image, etc.).

Please login to add a comment or rating.
Updates
11 Aug 2008

A few typos have been fixed. Thanks.

04 Sep 2008

The warnings have been fixed.

Tag Activity for this File
Tag Applied By Date/Time
image analysis Kanchi Tian 22 Oct 2008 10:13:35
image processing Kanchi Tian 22 Oct 2008 10:13:35
image edge detection Kanchi Tian 22 Oct 2008 10:13:35
evolutionary computation Kanchi Tian 22 Oct 2008 10:13:35
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com