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

图像畸变校正

于 2022-06-12 发布 文件大小:367.95 kB
0 95
下载积分: 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 个回复

  • windmodel
    在风力发电的模拟控制系统中,风速的模拟是一个重要的环节,而正确的风速模型不仅能够很好的 反应实际风速变化情况,而且能够给风力发电系统研究提供正确的源参数。本文用 Matlab/Simulink建立了风速组合数学模型,该模型将风速分为基本风速、阵风、渐变风速和组合风速4部分,仿真结果表明该模型能够理想的反应实际风速。(In the simulation control system of wind power generation, wind speed simulation is an important link, and the correct wind speed model can not only reflect the actual wind speed changes, but also provide the correct source parameters for wind power system research. In this paper, a combined mathematical model of wind speed is established by using MATLAB / Simulink. The model divides the wind speed into four parts: basic wind speed, gust wind, gradual wind speed and combined wind speed. The simulation results show that the model can reflect the actual wind speed perfectly.)
    2018-08-18 10:57:03下载
    积分:1
  • maltlab-simulation
    本文件包括matlab 仿真内容 有 四阶龙库格 函数仿真 等(This document contains the contents of matlab simulation of fourth-order function of simulation cell Long Library)
    2009-12-27 15:27:37下载
    积分:1
  • continuesignal
    说明:  这个连续信号的表现图像,作为matlab领域中最常见的内容,可以掌握(The performance of the continuous signal image as a matlab most common content areas, can acquire)
    2011-02-25 22:34:33下载
    积分:1
  • dlta-workspace
    在虚拟仿真环境下进行了几种不同规格零件的抓取试验。在ADAMS中进行仿真试验设置,创建传感器及仿真脚本命令,对两种规格零件进行了抓取试验分析,进一步验证结构设计的正确性及合理性。(the capture of several parts with different specification test was carried out in a virtual simulation environment. To further verify the correctness and the reasonable of the structural design, in ADAMS simulation test, the crawled test and analysis was done for two specifications of parts with the creating of command script and sensor.)
    2014-02-22 15:29:07下载
    积分:1
  • wuyueshuyouhua
    用matlab编写的无约束优化的源码,经过调试,都能运行,对数学建模竞赛帮助很大。(Prepared using matlab optimization of the source, through commissioning, to run on the Mathematical Contest in Modeling of great help.)
    2010-08-07 10:54:43下载
    积分:1
  • MATLAB_LinearAlgebra
    Matlab Linear algebra
    2011-02-03 17:21:37下载
    积分:1
  • lvboqi_shiyan
    巴特霍兹带通滤波器,可以通过不同的ws、wp实验出自己需要的频带(buttord filter)
    2011-06-01 16:52:21下载
    积分:1
  • matlab-make-miniPhotoshop
    matlab实现部分Photoshop特效(mini Photoshop)
    2014-12-09 12:08:09下载
    积分:1
  • gaussian_template
    Template for Gaussian averaging
    2012-06-22 06:05:52下载
    积分:1
  • CROlib.mat_1.0.2
    化学反应优化算法 最近提出的一种优化算法 源代码(Chemical Reaction Optimization )
    2020-11-17 19:19:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载