-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbmode_pointreflector_dw_experiment.m
45 lines (34 loc) · 1.24 KB
/
bmode_pointreflector_dw_experiment.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
% Reproduce the diverging wave point-source experiments of Section V.A of the paper
% "Non-stationary Blur Evaluation for Ultrasound Image Restoration",
% submitted to IEEE Transactions on Computational imaging
% Author: Adrien Besson
% Signal Processing Laboratory 5 (LTS5), EPFL
% email address: [email protected]
% July 2018
clear all;
close all;
clc
%-- Add path
addpath(genpath('utils'));
%-- Output filename
list_filename_output = {'results/dw_sparse_sources_varying.mat', 'results/dw_sparse_sources_est.mat', 'results/dw_sparse_sources_constant.mat'};
%-- Parameters
flag_psf_meth = [3, 2, 1];
p = 1;
maximum_iterations = 100;
flag_display = 0;
regularization_parameters = [2.4e5, 50, 1];
for pp = 1:numel(flag_psf_meth)
%-- Current PSF method
psf_meth = flag_psf_meth(pp);
%-- Current output filename
filename_out = list_filename_output{pp};
%-- Current regularization parameter
reg_parameter = regularization_parameters(pp);
%-- Experiment
deconvolution_point_source_dw(psf_meth, flag_display, filename_out, p, reg_parameter, maximum_iterations);
end
%-- Display B-mode images
display_bmode(list_filename_output)
%-- Compute the resolution
compute_resolution_point_source_dw(list_filename_output);