<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: photo acoustic imaging</title>
		<link>http://www.k-wave.org/forum/topic/photo-acoustic-imaging-1</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:41:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/photo-acoustic-imaging-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "photo acoustic imaging"</title>
			<link>http://www.k-wave.org/forum/topic/photo-acoustic-imaging-1#post-5319</link>
			<pubDate>Tue, 24 Nov 2015 15:15:40 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5319@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Kamal,&#60;/p&#62;
&#60;p&#62;What is it about the output that makes you say you are &#34;getting quite not convincing different plot&#34;? Did you see my response to your query &#60;a href=&#34;http://www.k-wave.org/forum/topic/various-input-signal&#34;&#62;here&#60;/a&#62;?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jnawali123@gmail.com on "photo acoustic imaging"</title>
			<link>http://www.k-wave.org/forum/topic/photo-acoustic-imaging-1#post-5310</link>
			<pubDate>Sun, 08 Nov 2015 03:13:34 +0000</pubDate>
			<dc:creator>jnawali123@gmail.com</dc:creator>
			<guid isPermaLink="false">5310@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;how we can define the pulse width for the chirp signal.&#60;/p&#62;
&#60;p&#62;I want to give the chirp signal for 0.1 micron and i have used matlab chirp inbuilt function to go from 2e6 to 7e6. But i am getting quite not convincing different plot.&#60;/p&#62;
&#60;p&#62;% set the size of the perfectly matched layer (PML)&#60;br /&#62;
PML_X_SIZE = 20;            % [grid points]&#60;br /&#62;
PML_Y_SIZE = 10;            % [grid points]&#60;br /&#62;
PML_Z_SIZE = 10;            % [grid points]&#60;/p&#62;
&#60;p&#62;% set total number of grid points not including the PML&#60;br /&#62;
Nx = 128 - 2*PML_X_SIZE;    % [grid points]&#60;br /&#62;
Ny = 128 - 2*PML_Y_SIZE;    % [grid points]&#60;br /&#62;
Nz = 64 - 2*PML_Z_SIZE;     % [grid points]&#60;/p&#62;
&#60;p&#62;% set desired grid size in the x-direction not including the PML&#60;br /&#62;
x = 40e-3;                  % [m]&#60;/p&#62;
&#60;p&#62;% calculate the spacing between the grid points&#60;br /&#62;
dx = x/Nx;                  % [m]&#60;br /&#62;
dy = dx;                    % [m]&#60;br /&#62;
dz = dx;                    % [m]&#60;/p&#62;
&#60;p&#62;% create the k-space grid&#60;br /&#62;
kgrid = makeGrid(Nx, dx, Ny, dy);&#60;/p&#62;
&#60;p&#62;% define the properties of the propagation medium&#60;br /&#62;
medium.sound_speed = 1540;  % [m/s]&#60;br /&#62;
medium.alpha_coeff = 0.003660;  % [dB/(MHz^y cm)]&#60;br /&#62;
medium.alpha_power = 1.5 ; &#60;/p&#62;
&#60;p&#62;% create the time array&#60;br /&#62;
 [kgrid.t_array , dt] = makeTime(kgrid, medium.sound_speed);&#60;/p&#62;
&#60;p&#62;% define a single source point&#60;br /&#62;
source.p_mask = zeros(Nx, Ny);&#60;br /&#62;
source.p_mask(end - Nx/8, Ny/2) = 1;&#60;/p&#62;
&#60;p&#62;% define a time varying sinusoidal source&#60;br /&#62;
source_freq = 2e6;   % [Hz]&#60;br /&#62;
source_mag = 1;         % [Pa]&#60;br /&#62;
t_offset = 5e-6;&#60;br /&#62;
K=[2,9];&#60;br /&#62;
pulsewidth_min=1e-6;&#60;br /&#62;
for k=1:2&#60;br /&#62;
source.p=zeros(size(kgrid.t_array));&#60;br /&#62;
for i=1:200&#60;br /&#62;
my_chirp = chirp(kgrid.t_array(i),source_freq,kgrid.t_array(1)+pulsewidth_min,7e6)+1;&#60;br /&#62;
source.p(i) = source_mag*my_chirp;&#60;br /&#62;
end&#60;/p&#62;
&#60;p&#62;for j=201:990&#60;br /&#62;
    source.p(i)=0;&#60;br /&#62;
end&#60;br /&#62;
% filter the source to remove high frequencies not supported by the grid&#60;/p&#62;
&#60;p&#62;source.p = filterTimeSeries(kgrid, medium, source.p);&#60;br /&#62;
% figure&#60;br /&#62;
% plot(kgrid.t_array,source.p)&#60;br /&#62;
% axis('tight')&#60;br /&#62;
% define a single sensor point&#60;br /&#62;
sensor.mask = zeros(Nx, Ny);&#60;br /&#62;
sensor.mask(Nx/8, Ny/K(k)) = 1;&#60;br /&#62;
%sensor.mask(Nx/14, Ny/7) = 1;&#60;/p&#62;
&#60;p&#62;% define the acoustic parameters to record&#60;br /&#62;
sensor.record = {'p', 'p_final'};&#60;/p&#62;
&#60;p&#62;% % run the simulation&#60;br /&#62;
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;% plot the final wave-field&#60;br /&#62;
figure;&#60;br /&#62;
imagesc(kgrid.y_vec*1e3, kgrid.x_vec*1e3, sensor_data.p_final + source.p_mask + sensor.mask, [-1 1]);&#60;br /&#62;
colormap(getColorMap);&#60;br /&#62;
ylabel('x-position [mm]');&#60;br /&#62;
xlabel('y-position [mm]');&#60;br /&#62;
axis image;&#60;/p&#62;
&#60;p&#62;% plot the simulated sensor data&#60;br /&#62;
figure;&#60;br /&#62;
[t_sc, scale, prefix] = scaleSI(max(kgrid.t_array(:)));&#60;/p&#62;
&#60;p&#62;subplot(2, 1, 1), plot(kgrid.t_array*scale, source.p, 'b-');&#60;br /&#62;
xlabel(['Time [' prefix 's]']);&#60;br /&#62;
ylabel('Signal Amplitude');&#60;br /&#62;
axis tight;&#60;br /&#62;
title('Input Pressure Signal');&#60;/p&#62;
&#60;p&#62;subplot(2, 1, 2), plot(kgrid.t_array*scale, sensor_data.p, 'r-');&#60;br /&#62;
xlabel(['Time [' prefix 's]']);&#60;br /&#62;
ylabel('Signal Amplitude');&#60;br /&#62;
axis tight;&#60;br /&#62;
title('Sensor Pressure Signal');&#60;/p&#62;
&#60;p&#62;end
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
