File Exchange

image thumbnail

Image Edge Detection Using Ant Colony Optimization

version 1.2 (18.4 KB) by

Image Edge Detection Using Ant Colony Optimization

35 Downloads

Updated

View License

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

Comments and Ratings (14)

Spyros

Spyros (view profile)

Hi Kanchi,
where can I find the pdf referenced in the code?

zoza azawi

hi Kanchi
I want to thank you for shareing your code
and ask if you can send me the paper that you are based upon,
to help me understand code.
email: al_zahraa91@yahoo.com

karan

karan (view profile)

Welcome to demo program of image edge detection using ant colony.
Please wait......
Undefined function or variable "memory_length".

Error in edge_CEC_2008_main (line 120)
    ant_memory = zeros(ant_total_num, memory_length);

raj

raj (view profile)

the prog. runs in my matlab and i do get 4 images.. but.. the prblm is... i have to limit the "size, format and dimensions of the image"...
i.e. i have to limit it to...
<18kb , .gif, 128x128

after doin this only im able to run the prgrm..
so wats the prblm exactly and hw do i rectify this prblm first...
can anyone tel..???

Nikhil Deore

I am doing my project on MRI brain image segmentation using ANT colony optimisation. Can anyone help me to start?

vaishnavi

Error in ==> edge_CEC_2008_main at 135
        for step_idx = 1:total_step_num
what is the problem will it work for x ray images

poo

poo (view profile)

Is this method is applicable for medical images?

Guru

Guru (view profile)

I am doing my project on MRI brain image segmentation using ANT colony optimisation. Can anyone help me to start?

Mark Hayworth

Mark Hayworth (view profile)

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.).

Vivian Tu

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!

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);

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);

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;

Updates

1.2

Remove a pdf file, due to a copyright issue.

1.1

Add more comments and document in the file. thanks.

A few typos have been fixed. Thanks.

MATLAB Release
MATLAB 7.1.0 (R14SP3)
Acknowledgements

Inspired: func_ant_colony_image_edge_detection

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

» Watch video