jingweimo的个人博客分享 http://blog.sciencenet.cn/u/jingweimo

博文

Demodulation of closed fringe patterns

已有 2196 次阅读 2015-8-19 05:26 |系统分类:科研笔记

%% Part1) closed patterns


clc; clear all; close all;

% coordinate system

[X Y]=meshgrid(linspace(0,1,768));

X = X-mean2(X);

Y = Y-mean2(Y);

%Background and Modulation terms

a = (255/2);

b = (255/2);

%phase map

P1 = 2*pi*10*sqrt(((X.^2+Y.^2)));

P2 = 2*pi*60*exp(((X.^2+Y.^2)));

P2 = P2+5.*peaks(768);

% P = P-mean2(P);


%fringe patterns

A_P1 = a+b.*(cos(P1)); A_P2 = a+b.*(cos(P1+2*pi/3)); A_P3 = a+b.*(cos(P1+4*pi/3));

B_P1 = a+b.*(cos(P2)); B_P2 = a+b.*(cos(P2+2*pi/3)); B_P3 = a+b.*(cos(P2+4*pi/3));


figure;

subplot(231); imshow(uint8(A_P1)); subplot(232); imshow(uint8(A_P2)); subplot(233); imshow(uint8(A_P3));

subplot(234); imshow(uint8(B_P1)); subplot(235); imshow(uint8(B_P2)); subplot(236); imshow(uint8(B_P3));








https://blog.sciencenet.cn/blog-578676-914140.html

上一篇:Phase unwrapping
下一篇:GUI运行报错:Attempt to reference field of non-structure arr
收藏 IP: 35.10.57.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-12-1 00:21

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部