Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tff2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
skmad-suite
tff2020
Commits
b3fe7ee4
Commit
b3fe7ee4
authored
4 years ago
by
Marina Kreme
Browse files
Options
Downloads
Patches
Plain Diff
refactor
parent
a08c0210
No related branches found
No related tags found
No related merge requests found
Pipeline
#5950
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/tfgm/tf_fading/solver_tfgm_zero.m
+0
-19
0 additions, 19 deletions
matlab/tfgm/tf_fading/solver_tfgm_zero.m
matlab/tfgm/tf_fading/zero_fill_solver.m
+37
-0
37 additions, 0 deletions
matlab/tfgm/tf_fading/zero_fill_solver.m
with
37 additions
and
19 deletions
matlab/tfgm/tf_fading/solver_tfgm_zero.m
deleted
100644 → 0
+
0
−
19
View file @
a08c0210
function
x_zero
=
solver_tfgm_zero
(
X
,
mask
,
idgt
)
%% x_zero= solver_tfgm_zero(X, mask, idgt)
% Thid function reconstruct the signal after filling the masked regions by zeros.
% Inputs:
% - X: time-frequency matrix
% - mask: binary mask
% - idgt: Inverse of Gabor transform operator
% Outputs:
% -x_interp: estimated signal
%
%
% Author: Marina KREME
%%
X
(
mask
==
1
)
=
0
;
x_zero
=
compute_idgt
(
X
,
idgt
);
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
matlab/tfgm/tf_fading/zero_fill_solver.m
0 → 100644
+
37
−
0
View file @
b3fe7ee4
function
x_est
=
zero_fill_solver
(
x
,
mask
,
dgt
,
idgt
,
dgt_params
,
...
,
signal_params
,
fig_dir
)
%% x_est= zero_fill_solver(x, mask, dgt, idgt, dgt_params,...,
% signal_params, fig_dir)
% Thid function reconstruct the signal after filling the masked regions by zeros.
% Inputs:
% - x (nd array): mix signals
% - mask: time-frequency mask
% - idgt,dgt (handle): DGT and IDGT . see utils/get_stft_operators.m
% - dgt_params (struct) : DGT parameters
% - signal_params (struct) . :signals parameters
% - fig_dir : folder where figures are stored
% Outputs:
% -x_est (nd array): estimated signal
%
%
% Author: Marina KREME
%%
x_tf
=
dgt
(
x
);
x_tf
(
mask
==
1
)
=
0
;
x_est
=
idgt
(
x_tf
);
%%
figure
plot_spectrogram
(
x_tf
,
dgt_params
,
signal_params
,
dgt
);
title
(
'TF matrix filled by zeros in mask'
)
saveas
(
gcf
,
fullfile
(
fig_dir
,
'tf_filled_zeros.pdf'
));
figure
plot_spectrogram
(
x_est
,
dgt_params
,
signal_params
,
dgt
);
title
(
'Reconstructed signal by zero fill'
)
saveas
(
gcf
,
fullfile
(
fig_dir
,
'zero_fill_est.pdf'
));
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment