-
GAC模型,迎风方案
im=imread("e:301clip301.tif");
im=rgb2gray(im);
im=double(im);
im = imresize( im, 0.5 ); % 为了减少程序运行时间,将图像变小为原来大小的1/2
figure(1);imshow(uint8(im));
[nrow,ncol]=size(im);
J= gauss( im,3,2 ); % 为了计算函数g,先对图像作guassian预平滑
%%- 计算图像梯度模值
J_x = (J(:,[2:ncol ncol])-J(:,[1 1:ncol-1]))/2;
J_y = (J([2:nrow nrow],:)-J([1 1:nrow-1],:))/2;
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-14 21:25:24下载
- 积分:1
-
POJ经典试题-1091跳蚤
POJ是北大在线测评系统这里有一些经典试题。跳蚤是一道经典试题代码给出了Accepted算法。
- 2022-04-08 10:53:42下载
- 积分:1
-
格子Boltzmann方法模拟不稳定绕柱流
采用格子Boltzmann方法模拟不稳定绕柱流的情况,在固体边界出采用反弹格式进行处理
- 2022-05-25 19:48:19下载
- 积分:1
-
方腔流程序
不可压ns方程计算方腔流,采用投影法进行计算,有限差分法,对流项采用三阶迎风,扩散项采用中心差分
- 2023-05-26 01:55:03下载
- 积分:1
-
selection排序法
selection排序法-Selection sorting method
- 2022-03-20 17:03:35下载
- 积分:1
-
新型GA算法
一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum 迭代的次数(代数)% psize 种群的规模大小%输出参数:% opy 最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置 newg
- 2022-03-18 14:25:18下载
- 积分:1
-
本程序采四边形网格法编制了曲面等值线程序,只要输入相应数据,就可绘制出等值线图...
本程序采四边形网格法编制了曲面等值线程序,只要输入相应数据,就可绘制出等值线图-the procedures adopted mesh France produced a surface contour procedures, as long as the corresponding data input can be drawn contour map
- 2022-03-16 06:51:28下载
- 积分:1
-
Learnin Mathematics with the ABACUS Activity
Learnin Mathematics with the ABACUS Activity-book
part 8
- 2022-08-09 12:45:02下载
- 积分:1
-
beckhoff直线和圆弧插补源码
应用背景可以应用在三轴直角坐标机器中,走直线和圆弧功能,有一定的参考价值~~关键技术采用TWINCAT2集成环境开发,ST语言编写的直线、圆弧插补源码,有需要的朋友可以参考一下~~
- 2022-03-26 01:42:59下载
- 积分:1
-
Arduino 网络电表开发源码
在Arduino上面烧写代码,可以获取用电量的各个参数,包括电压,电流,功率,用电量,需要传感器模块的支持。
- 2022-01-30 16:08:37下载
- 积分:1