|
%% 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));
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-1 00:21
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社