Hi,
I have a CT volume and I want to simulate Ultrasound image from it. I have used hounsfield2density to get the speed and density, but I have no idea how to adjust the parameters in example_us_bmode_linear_transducer.m.
% load volumeData from zraw
Nx = size(volumeData,1); % [grid points]
Ny = size(volumeData,2); % [grid points]
Nz = size(volumeData,3); % [grid points]
...
for scan_line_index = 1:number_scan_lines
...
[ct_density, ct_sound_speed] = hounsfield2density(volumeData);
medium.sound_speed = ct_sound_speed(:, medium_position:medium_position + Ny - 1, :);
medium.density = ct_density(:, medium_position:medium_position + Ny - 1, :);
% medium.sound_speed = sound_speed_map(:, medium_position:medium_position + Ny - 1, :);
% medium.density = density_map(:, medium_position:medium_position + Ny - 1, :);
...
Is it right? Can anyone give me some suggestions? Thanks.