forked from wongruiming/bistatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_jtfa.m
78 lines (50 loc) · 1.29 KB
/
main_jtfa.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%%% main
clear all
close all
clc
addpath('Autofocus','Clean','Image_formation','image_scaling')
addpath('pol_clean','pol_dec','pol_isar','Range_compression')
addpath('Sig_gen','tftb','time_window')
global omegami
global per phase
type = 1; % frequency-slow time signal generation
% type = 2 % fast time-slow time signal generation
comp = 1; % uncompemsated signal is generated
% comp = 2; % compnesated signal is generated
target_generation
target_or_mot
H = target_display(posTz);
radar_target_kin
signal_gen
if comp == 1
autofocus
end
%%% image formation
zp = 2; % zero pedding factor
%% JTFA
% currDir = cd;
% movieFileName = ['test'];
% mov = avifile(movieFileName, 'fps', 1, 'QUALITY', 100);
src = fftshift(fft(filedata,[],2),2); % range compression
K = 10; %number of frames
[I Ic] = jtfa(src,zp,K);
%%
for nn = 1:K
figure(5)
imagesc(10*log10(fftshift(squeeze(I(:,nn,:))))-max(max(10*log10(fftshift(squeeze(I(:,nn,:)))))),[-40,0])
title(['JTFA - ',num2str(nn)])
colorbar
colormap(jet)
pause(0.5);
% Fi = getframe(gcf);
% mov = addframe(mov,Fi);
end
%%
% mov = close(mov);
% %% image shift (central image)
%
% IN2 = squeeze(I(:,ceil(K/2),:));
%
% sr = 30;
% scr = 300;
% Ics = circs(IN2,sr,scr,'Shifted Range-Instantaneous-Doppler ISAR Image');