登录
首页 » Matlab » 图像畸变校正

图像畸变校正

于 2022-06-12 发布 文件大小:367.95 kB
0 82
下载积分: 2 下载次数: 3

代码说明:

function gmodify(pic,uv,gm,og) %pic表示要处理的图像的路径文件名 %uv是一个二维矩阵,uv(:,1)代表上面提到的,uv(:,2)表示 %gm是一个二维矩阵,gm(j,:)代表在校正图空间上与uv(j,:)一一应的点 %og 代表对称中心,它是一个二维向量 a=imread(pic); b=double(a); n=size(gm(:,1)); for k=1:n%转换到以对称点为原点的空间关系并构造矩阵A A(k,:)=[1,gm(k,1)-og(1),gm(k,2)-og(2),(gm(k,1)-og(1)^2), (gm(k,1)-og(1))*(gm(k,2)-og(2)),(gm(k,2)-og(2) ^2)]; end [h,w]=size(b(:,:,1)); sp=zeros(h,w,3)+255; a0=pinv(A)* uv(:,2); %计算上面提到的地址映射的系数估计a b0=pinv(A)* uv(:,1); %计算上面中提到的地址映射的系数估计b for i=1:h %从理想图像矩阵出发处理 for j=1:w x=[1,j-og(1),i-og(2),(j-og(1))^2,(i-og(2))*(j-og(1)),(i-og(2))^2]; u=x*a0+og(2); % 逆向映射(j,i)到畸变图像矩阵(v,u) v=x*b0+og(1); if (u>1)&&(u1)&&(v

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • HW6_P1sim
    anti-windup scheme example
    2012-04-18 15:23:02下载
    积分:1
  • matlab
    matlab包括最基本的语音处理程序(如谱减法,谱幅度估计,语谱图等)以及语音库(Located in this Prentice Hall web site compartment are functions, scripts, workspaces, and data required by the MATLAB exercises in the text: Discrete-Time Speech Signal Processing: Principles and Practice. Note that the speech files given are often specific cases of a certain class of speech signal, i.e., the waveforms often can be replaced by other examples with similar characteristics that serve the instructive purpose of the exercise.)
    2013-07-16 20:56:05下载
    积分:1
  • belief_NN
    A neural network classifier based on Dempster-Shafer theory
    2008-09-07 09:44:41下载
    积分:1
  • 113172239Image_Restoration
    说明:  基于小波变换的图像融合用matlab实现的源代码(image fusion)
    2010-04-02 15:08:04下载
    积分:1
  • total
    关于matlab和c语言编写的fdtd程序的小集合,我平时收集的,看对大家是否有帮助。(Matlab and c on the language of the fdtd small set of programs, I usually collected to see if that helps all of us.)
    2011-05-10 17:30:06下载
    积分:1
  • Battery_li_ion_model
    锂电池模型 主要对电池的外围电路,充放电特性做了sinmulink环境下的模拟,是锂电池初学者一个很好的入门学习(Lithium battery model is mainly peripheral circuit battery charge and discharge characteristics do simulation sinmulink environment, is a good place to start for beginners lithium learning)
    2014-12-06 09:24:37下载
    积分:1
  • info
    This file is regarding MATLAB, which describes the different models in MATLAB simulation or block which are present and useful for different applications.
    2011-11-16 16:33:30下载
    积分:1
  • tuiyang
    包含飞行器飞行中的姿态控制,如侧滑角,倾斜角,滚转角,俯仰角,与理论分析结果相比,DSmT证据推理的组合公式计算函数。( It comprises aircraft flight attitude control, such as slip angle, tilt angle, roll angle, pitch angle, Compared with the results of theoretical analysis, Combination formula DSmT evidence reasoning calculation function.)
    2016-11-21 23:34:27下载
    积分:1
  • 一个自适应噪声对消源例程代码
    包括面积、周长、矩形度、伸长度,实现典型相关分析,用蒙特卡洛模拟的方法计算美式期权的价格以及基本描述,欢迎大家下载学习,可实现对二维数据的聚类,一个很有用的程序。
    2023-09-07 08:00:03下载
    积分:1
  • hamming_code
    汉明码的编译码MATLAB程序,对刚开始学习编码有帮助(Hamming code for encoding and decoding MATLAB program)
    2010-01-11 22:19:58下载
    积分:1
  • 696518资源总数
  • 106265会员总数
  • 10今日下载