| |
|
|
| |
| |
| |
|
|
| |
|
|
| |
| |
|
|
| |
|
|
|
|
| clear all; |
| close all; |
| clc; |
| addpath(genpath('../src')); |
|
|
|
|
| |
| acquisition_type = 1; |
| phantom_type = 1; |
| data_type = 2; |
| flag_display = 0; |
|
|
|
|
| |
| switch acquisition_type |
| case 1 |
| acquisition = 'simulation'; |
| acqui = 'simu'; |
| flag_simu = 1; |
| case 2 |
| acquisition = 'experiments'; |
| acqui = 'expe'; |
| flag_simu = 0; |
| otherwise |
| acquisition = 'simulation'; |
| acqui = 'simu'; |
| flag_simu = 1; |
| end |
| switch phantom_type |
| case 1 |
| phantom = 'resolution_distorsion'; |
| case 2 |
| phantom = 'contrast_speckle'; |
| otherwise |
| phantom = 'resolution'; |
| end |
| switch data_type |
| case 1 |
| data = 'iq'; |
| case 2 |
| data = 'rf'; |
| otherwise |
| data = 'iq'; |
| end |
|
|
|
|
| |
| path_scan = ['../../database/',acquisition,'/',phantom,'/',phantom,'_',acqui,'_scan.hdf5']; |
| path_phantom = ['../../database/',acquisition,'/',phantom,'/',phantom,'_',acqui,'_phantom.hdf5']; |
| path_reconstruted_img = ['../../reconstructed_image/',acquisition,'/',phantom,'/',phantom,'_',acqui,'_img_from_',data,'.hdf5']; |
| path_output_log = ['../../evaluation/',phantom,'/',phantom,'_',acqui,'_evaluation_from_',data,'.txt']; |
|
|
|
|
| |
| disp(['Starting evaluation from ',acquisition,' for ',phantom,' using ',data,' dataset']) |
|
|
| |
| flag_simu = num2str(flag_simu); |
| flag_display = num2str(flag_display); |
| switch phantom_type |
| case 1 |
| tools.exec_evaluation_resolution_distorsion(path_scan,path_phantom,path_reconstruted_img,flag_simu,flag_display,path_output_log); |
| case 2 |
| tools.exec_evaluation_contrast_speckle(path_scan,path_phantom,path_reconstruted_img,flag_simu,flag_display,path_output_log); |
| otherwise |
| tools.exec_evaluation_resolution(path_scan,path_phantom,path_reconstruted_img,flag_simu,flag_display,path_output_log); |
| end |
| disp('Evaluation Done') |
| disp(['Result saved in "',path_output_log,'"']) |
|
|
|
|
|
|