a b/script_extract_B_mode_images.m
1
% itype = 1 for bmode images
2
itype = 1;
3
4
% X axis of the B mode Image [metric units]
5
handles.x_vec               = linspace(0,...
6
                                dataout{itype}.meta{1}.DICOM_PHYSICAL_DELTA_X(1)*dataout{itype}.meta{1}.dims(2),...
7
                                dataout{itype}.meta{1}.dims(1));
8
9
% Y axis of the B mode Image [metric units]
10
handles.y_vec               = linspace(0,...
11
                                dataout{itype}.meta{1}.DICOM_PHYSICAL_DELTA_Y(1)*dataout{itype}.meta{1}.dims(2),...
12
                                dataout{itype}.meta{1}.dims(1));
13
14
% Resolution of the X and Y axis [metric units]
15
handles.dx                  = mean(diff(handles.x_vec));
16
handles.dy                  = mean(diff(handles.y_vec));
17
18
% Load the input image into handles by taking transpose of each term
19
bframe                      = permute(dataout{itype}.img{1}, [2, 1, 3]);
20
21
% Total number of time stamps
22
Num_Time_Stamps             = size(bframe, 3);