Ant Colony Optimization and edge detection explanation request.

2 views (last 30 days)
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));

Answers (1)

Image Analyst
Image Analyst on 4 Oct 2012
Which function, rand(), sum(), or round() do you not understand, even after looking it up in the help?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!