Ant Colony Optimization and edge detection explanation request.
2 次查看(过去 30 天)
显示 更早的评论
Sir, I referred your program for edge detection using Ant Colonly Optimization. There are some functions that I couldnt understand. I request you to please explain the following code??
rand('state', sum(clock));
temp = rand(ant_total_num, 2);
ant_pos_idx(:,1) = round(1 + (nrow-1) * temp(:,1));
ant_pos_idx(:,2) = round(1 + (ncol-1) * temp(:,2));
0 个评论
回答(1 个)
Image Analyst
2012-10-4
Which function, rand(), sum(), or round() do you not understand, even after looking it up in the help?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!