计算图像相位源码程序 - vb源码程序 - 谷速源码
下载频道> 资源分类> 编程语言> VB源码> 计算图像相位源码程序

标题:计算图像相位源码程序
分享到:

所属分类: VB源码 资源类型: 文件大小: 676.47 KB 上传时间: 2016-01-25 19:48:00 下载次数: 8 资源积分:1分 提 供 者: xiaopeng2 计算图像相位源码程序
内容:
计算图像相位源码程序,程序员在编程的过程中可以参考学习使用,希望对IT程序员有用,此源码程序简单易懂、方便阅读,有很好的学习价值!
%% ========================================================================
%% Title: 
%  1) Importance of phase in images
%  2) Verification of Fig 6.2 of [1]
%% Author: 
%  Ankit A. Bhurane (ankit.bhurane@gmail.com)
%% Expression:
% Original images and their Fourier transforms:
%
% Space domain    <=>        Spatial Frequency
%   I1(x,y)        =>      |F1(w)| exp(j* <F1(w)); 
%   I2(x,y)        =>      |F2(w)| exp(j* <F2(w)); 
% Inverse Fourier transforms with phases exchanged:
%   R1(x,y)       <=       |F1(w)| exp(j* <F2(w)); 
%   R2(x,y)       <=       |F2(w)| exp(j* <F1(w));
%
%% Observations:
% Phase plays a vital role in capturing the changes within an image. If
% phases of the two images are interchanged, the complete image appears to
% be different.
%% References: 
% [1] Oppenheim, Willsky, Nawab, "Signals and Systems", PHI, Second edition
%% Last Modified: Sept 26, 2013.
%% Copyright (c) 2013-2014 | Ankit A. Bhurane
%% ========================================================================
 
clc; clear all; close all;
 
% Read original images
VMG = imread('VMG.png'); 
SSG = imread('SSG.png'); 
 
% Fourier transforms of corrsponding images
F_VMG = fftn(VMG); 
F_SSG = fftn(SSG);
 
% Isolate magnitude and phase of input images
M_VMG = abs(F_VMG); P_VMG = angle(F_VMG); 
M_SSG = abs(F_SSG);P_SSG = angle(F_SSG);
 
% Take inverse Fourier transforms with phase exchanged
I_VMG = ifftn(M_VMG.*exp(1j*P_SSG)); I_SSG = ifftn(M_SSG.*exp(1j*P_VMG));
 
% Show Image
subplot 221; imshow(VMG); title('Prof. V.M. Gadre (VMG)');
subplot 222; imshow(SSG); title('Prof. Somnath Sengupta (SSG)');
subplot 223; imshow(uint8(I_VMG)); title('Magnitude of VMG, Phase of SSG');
subplot 224; imshow(uint8(I_SSG)); title('Magnitude of SSG, Phase of VMG');
 
%% ========================================================================

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

计算图像相位源码程序/
计算图像相位源码程序/Importance_of_Phase_in_Images_Ankit_A_Bhurane/
计算图像相位源码程序/Importance_of_Phase_in_Images_Ankit_A_Bhurane/Importance_of_Phase_in_Images_Ankit_A_Bhurane.m
计算图像相位源码程序/Importance_of_Phase_in_Images_Ankit_A_Bhurane/SSG.png
计算图像相位源码程序/Importance_of_Phase_in_Images_Ankit_A_Bhurane/VMG.png

关键词: 相位 源码 图像

编程语言下载排行

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved