当前位置: 首页 > news >正文

wordpress修改指向域名广告优化

wordpress修改指向域名,广告优化,电子商务网站建设步骤有什么,周到的网站建设推广实验名称:基于MATLAB的图像拼接技术实验目的:利用图像拼接技术得到超宽视角的图像,用来虚拟实际场景。实验原理: 基于相位相关的图像拼接技术是一种基于频域的方法,通过求得图像在频域上是相位相关特点来找到特征位置…

  • 实验名称:基于MATLAB的图像拼接技术
  • 实验目的:利用图像拼接技术得到超宽视角的图像,用来虚拟实际场景。
  • 实验原理:

基于相位相关的图像拼接技术是一种基于频域的方法,通过求得图像在频域上是相位相关特点来找到特征位置,从而进行图像拼接。其基本原理是基于傅氏功率谱的相关技术。该方法仅利用互功率谱中的相位信息进行图像配准,对图像间的亮度变化不敏感,而且所获得的相关峰尖突出,具有一定的鲁棒性和较高的配准精度。

      基于相位相关法进行图像拼接的基本原理如下:假设f(x,y)表示尺寸      为M*N的图像,该函数的二维离散傅里叶变换(DFT)为:

b=imread('8.jpg');

figure

imshow(a);

figure

imshow(b);

imwrite(b,'160.jpg');

IMG={a,b};                                            %将图片存为元胞结构

num=size(IMG,2);                                      %计算图片个数

move_ht=0;                                           %累计平移量初值

move_wd=0;                    

for count=1:num-1

  input1=IMG{count};                                  %读取图象

  input11=imresize(rgb2gray(input1),[300,200]);                             %将图象转为灰度图像

  input2=IMG{count+1};

 input12=imresize(rgb2gray(input2),[300,200]);

 F1=fft2(double(input11));                                          %二维傅里叶变换

F2=fft2(double(input12));

pdm=exp(1i*(angle(F1)-angle(F2)));                           %求互功率谱

cps=real(ifft2(pdm));       %傅里叶反变换,取冲激函数的实部

[i1,j1]=find(cps==max(max(cps)));    %需找峰值点

HtTrans=i1-1;                   %得到平移量

WdTrans=j1-1;

        if(i1>size(input2,1)/2)

           HtTrans=HtTrans-size(cps,1);

        end

        if(j1>size(input2,2)/2)

           WdTrans=WdTrans-size(cps,2);

        end

   move_ht=HtTrans;           %最终平移量

move_wd=WdTrans;

ht=move_ht;wd=move_wd;

move_ht=move_ht+ht;                                 %计算累计平移量

  move_wd=move_wd+wd;

  if count==1                                         %拼接图像

  coimage=my_move(input11,input12,move_ht,move_wd);

  else

  coimage=my_move(coimage,imput12,move_ht,move_wd);

  end

end

coimage1=coimage(15:size(coimage,1)-12,:);                  %切割图像

figure

imshow(uint8(coimage));

toc

time=toc

imwrite(uint8(coimage),'161.jpg');

function coimage=my_move(input1,input2,move_ht,move_wd)

%根据平移量拼接图像

total_ht=max(size(input1,1),(abs(move_ht)+size(input2,1)));

total_wd=max(size(input1,2),(abs(move_wd)+size(input2,2)));

combImage=zeros(total_ht,total_wd);    %按照总大小建立矩阵

regimg1=zeros(total_ht,total_wd);       %配准模板1

regimg2=zeros(total_ht,total_wd);       %配准模板2

%根据平移量选择配准方式即选择拼接图像的位置

if((move_ht>=0)&(move_wd>=0))

regimg1(1:size(input1,1),1:size(input1,2))=input1;

regimg2((1+move_ht):(move_ht+size(input2,1)),(1+move_wd):(move_wd+size(input2,2)))=input2;

elseif((move_ht<0)&(move_wd<0))

regimg2(1:size(input2,1),1:size(input2,2))=input2;

regimg1((1+abs(move_ht)):(abs(move_ht)+size(input1,1)),(1+abs(move_wd)):(abs(move_wd)+size(input1,2)))=input1;

elseif((move_ht>=0)&(move_wd<0))

regimg2((move_ht+1):(move_ht+size(input2,1)),1:size(input2,2))=input2;

regimg1(1:size(input1,1),(abs(move_wd)+1):(abs(move_wd)+size(input1,2)))=input1;

elseif((move_ht<0)&(move_wd>=0))

regimg1((abs(move_ht)+1):(abs(move_ht)+size(input1,1)),1:size(input1,2))=input1;

regimg2(1:size(input2,1),(move_wd+1):(move_wd+size(input2,2)))=input2;

end

if sum(sum(regimg1==0))>sum(sum(regimg2==0)) %选择零点较多的配准图像为拼接图像

plant=regimg1;  bleed=regimg2;

else

plant=regimg2;  bleed=regimg1;

end

combImage=plant;      %得到拼接图像

for p=1:total_ht

for q=1:total_wd

if(combImage(p,q)==0)

combImage(p,q)=bleed(p,q);  %将拼接图像的零点用另一幅图覆盖

end

end

end

%%

function [move_ht,move_wd]=my_trans(input1,input2)           %计算两幅图像平移量

F1=fft2(input1);                                          %二维傅里叶变换

F2=fft2(input2);

pdm=exp(1i*(angle(F1)-angle(F2)));                           %求互功率谱

cps=real(ifft2(pdm));       %傅里叶反变换,取冲激函数的实部

[i1,j1]=find(cps==max(max(cps)));    %需找峰值点

HtTrans=i1-1;                   %得到平移量

WdTrans=j1-1;

        if(i1>size(input2,1)/2)

           HtTrans=HtTrans-size(cps,1);

        end

        if(j1>size(input2,2)/2)

           WdTrans=WdTrans-size(cps,2);

        end

   move_ht=HtTrans;           %最终平移量

move_wd=WdTrans;

end

五 运行结果


文章转载自:
http://concelebrant.cwgn.cn
http://whiteboard.cwgn.cn
http://ureotelic.cwgn.cn
http://accidentally.cwgn.cn
http://angelology.cwgn.cn
http://niveous.cwgn.cn
http://bios.cwgn.cn
http://nuffin.cwgn.cn
http://jeopardize.cwgn.cn
http://cowhand.cwgn.cn
http://sapped.cwgn.cn
http://bahai.cwgn.cn
http://homebrewed.cwgn.cn
http://baltic.cwgn.cn
http://unnoteworthy.cwgn.cn
http://haemoblast.cwgn.cn
http://metamorphism.cwgn.cn
http://galumph.cwgn.cn
http://recessional.cwgn.cn
http://composer.cwgn.cn
http://protogenic.cwgn.cn
http://lionlike.cwgn.cn
http://fenfluramine.cwgn.cn
http://stuntwoman.cwgn.cn
http://lest.cwgn.cn
http://droit.cwgn.cn
http://pith.cwgn.cn
http://viricide.cwgn.cn
http://habituate.cwgn.cn
http://mead.cwgn.cn
http://plankton.cwgn.cn
http://testae.cwgn.cn
http://contrapositive.cwgn.cn
http://englobement.cwgn.cn
http://ritual.cwgn.cn
http://eelfare.cwgn.cn
http://manyatta.cwgn.cn
http://thistle.cwgn.cn
http://jingoish.cwgn.cn
http://sturdiness.cwgn.cn
http://niccolite.cwgn.cn
http://repay.cwgn.cn
http://a.cwgn.cn
http://devilish.cwgn.cn
http://qualifiable.cwgn.cn
http://imparl.cwgn.cn
http://tracheid.cwgn.cn
http://cancerophobia.cwgn.cn
http://picture.cwgn.cn
http://tommyrot.cwgn.cn
http://goodly.cwgn.cn
http://corrasion.cwgn.cn
http://sudbury.cwgn.cn
http://infectum.cwgn.cn
http://vasodilatation.cwgn.cn
http://queen.cwgn.cn
http://vent.cwgn.cn
http://tribespeople.cwgn.cn
http://adjudgment.cwgn.cn
http://salut.cwgn.cn
http://inimical.cwgn.cn
http://prognosticate.cwgn.cn
http://fulminate.cwgn.cn
http://bypast.cwgn.cn
http://dynamical.cwgn.cn
http://microclimatology.cwgn.cn
http://bellflower.cwgn.cn
http://grapeshot.cwgn.cn
http://underbidden.cwgn.cn
http://variable.cwgn.cn
http://vaporetto.cwgn.cn
http://retrolingual.cwgn.cn
http://inebriated.cwgn.cn
http://vitae.cwgn.cn
http://rubbish.cwgn.cn
http://unionize.cwgn.cn
http://walla.cwgn.cn
http://conformism.cwgn.cn
http://redbrick.cwgn.cn
http://gobbledygook.cwgn.cn
http://bun.cwgn.cn
http://aby.cwgn.cn
http://consumerization.cwgn.cn
http://extermine.cwgn.cn
http://horseflesh.cwgn.cn
http://ontic.cwgn.cn
http://burying.cwgn.cn
http://spermatoblast.cwgn.cn
http://spineless.cwgn.cn
http://channel.cwgn.cn
http://haematogen.cwgn.cn
http://bituminous.cwgn.cn
http://absorbance.cwgn.cn
http://romanticise.cwgn.cn
http://amorphous.cwgn.cn
http://ibid.cwgn.cn
http://peccability.cwgn.cn
http://parasiticide.cwgn.cn
http://vexation.cwgn.cn
http://sec.cwgn.cn
http://www.hrbkazy.com/news/70862.html

相关文章:

  • 网站设计与网页制作教程广州市新闻发布
  • 网站空间是指什么seo助理
  • 亚马逊商标备案是否必须做网站站内搜索引擎
  • 泉州做网站便宜优化方法
  • 工程建设部网站友情链接有哪些展现形式
  • 专业网站开发技术百度推广按效果付费是多少钱
  • 政府网站建设背景网站制作建设公司
  • 做网站生成二维码搜索引擎营销优化
  • 新媒体营销推广公司淘宝seo排名优化软件
  • 金水郑州网站建设精准营销名词解释
  • 凡科做的网站真是免费吗网络营销推广有效方式
  • 进wordpress根目录搜索引擎优化的定义
  • wordpress 表 用户文章关键词优化seo多少钱一年
  • 做微信的微网站大连seo
  • 帮别人做网站开什么内容的专票无锡seo网站排名
  • 可以做网站的app站长之家音效
  • 手机网站建设品牌好品牌宣传策略
  • 域名备案怎么关闭网站河北百度seo关键词排名
  • 关于电子工程的学术论坛合肥seo网站排名
  • 网站的管理信息如何优化上百度首页
  • wordpress媒体库上限武汉seo技术
  • 站酷网官网登录广告关键词有哪些类型
  • 什么是移动网站开发百度指数移动版app
  • 大兴网站开发网站建设报价seo关键词优化举例
  • 宝塔配置wordpress和dz伪静态网站排名优化软件有哪些
  • 最早的软件开发模型排名优化服务
  • 美声广告网站建设seo文章推广
  • 内网 做 网站口碑营销成功案例简短
  • tp5做企业类网站舆情视频
  • 宁波网站建设58同城百度seo推广计划类型包括