K-WAVE MATLAB

a girl's fave toolbox

GIVE LOVE TO K-WAVE

% ==================================================
% SIMULATION
% ==================================================
% create the computational grid
Nx = 128; % number of grid points in the x (row) direction
Ny = 128; % number of grid points in the y (column) direction
dx = 0.1e-3; % grid point spacing in the x direction [m]
dy = 0.1e-3; % grid point spacing in the y direction [m]
kgrid = kWaveGrid(Nx, dx, Ny, dy);

% define the properties of the propagation medium (2 layers)
medium.sound_speed = 1500 * ones(Nx, Ny); % [m/s] layer1
medium.sound_speed(1:Nx/2, :) = 1800; % [m/s] layer2
medium.alpha_coeff = 0.75; % [dB/(MHz^y cm)]
medium.alpha_power = 1.5;

% create initial pressure distribution,
% placing a disc in the tissue (2D)
disc_magnitude = 5; % [Pa]
disc_x_pos = 64; % [grid points]
disc_y_pos = 32; % [grid points]
disc_radius = 4; % [grid points]
disc_1 = disc_magnitude * makeDisc(Nx, Ny, disc_x_pos, disc_y_pos, disc_radius);



After plotting the simulation you want,,, you can visualize the signal data from the sensors
using Image reconstruction methods in K-wave assuming different sound speeds for the media
We came up with a metric to calculate sharpness and compactness
to find the most amazing beautiful accurate reconstructed image!!🥂

WHO IS THIS NEW METRIC?? ⊂(✰-✰)つ > > >

< < <go back