My leave algorithm is complimenting the image I have created on MS paint and taking it as input image for my reconstruction program though the image reconstruction is Ok. Please tell me how to correct this?
Algorithm goes like this..
clear all
p0_magnitude = 1;
p0 = p0_magnitude * loadImage('C:\Users\IIIT-A\Desktop\bin\k.png');
% Grid
Nx = 300;
Ny = 300;
dx = 500e-6;
dy = 500e-6;
kgrid = kWaveGrid(Nx, dx, Ny, dy);
%PML
PML_size = [20,20];
PML_Alpha = [10,10];
PML_inside = false;
plot_PML = true;
%Source
source.p0 = resize(p0,[Nx, Ny]);%to resize the image
medium.sound_speed = 1500*ones(Nx, Ny); % [m/s]
medium.density = 1040; % [kg/m^3]
%Sensor
sensor_radius = 60e-3; % [m]
num_sensor_points = 100;
sensor.mask = makeCartCircle(sensor_radius, num_sensor_points);
%input arguments
input_args = {'PMLSize',PML_size,'PMLAlpha',PML_Alpha,'PMLInside',false,'PlotPML', true}
%simulation
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, input_args{:});
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Running photoacoustic simulation
(2 posts) (2 voices)-
Posted 6 years ago #
-
Hi Pankaj,
I don't understand your question. What is it you're stuck on?
Brad.
Posted 6 years ago #
Reply
You must log in to post.