[81c116]: / script_extract_B_mode_images.m

Download this file

22 lines (17 with data), 983 Bytes

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