Camouflage evolution simulation with Genetic algorithm
run camouflage_ga.m
See how it works here:
http://www.youtube.com/watch?v=MGdDRJlMRbY
There are 5000 images 4x4 size (population) over background that is changed from time to time. Each image has 16 color levels in each of R G B channel. Background is also 4x4 image repeated. Fitness is 1/(1+ds) where ds mean difference between a image and background image. For crossover is used method when child is random part of one parent and another part from second parent. It is horizontal dividing to the parts. Elitism applied when best image keep unchanged to next generation. There are 2 king of mutation. Absolute mutation when some pixels get random colors. Relative mutation when some pixels get random increments to colors. Best image is on first row and last column. Worst image is second row and last column. Also shown some another 7 images. Rest 4991 images are not shown. This is Matlab program.
引用格式
Maxim Vedenyov (2024). Camouflage evolution simulation with Genetic algorithm (https://www.mathworks.com/matlabcentral/fileexchange/30544-camouflage-evolution-simulation-with-genetic-algorithm), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |