Ant Colony Optimization and edge detection explanation request.

2 Ansichten (letzte 30 Tage)
rachana
rachana am 4 Okt. 2012
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));

Antworten (1)

Image Analyst
Image Analyst am 4 Okt. 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!

Translated by