<?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: new grid for reconstruction</title>
		<link>http://www.k-wave.org/forum/topic/new-grid-for-reconstruction</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 13:33:59 +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/new-grid-for-reconstruction" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "new grid for reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/new-grid-for-reconstruction#post-5854</link>
			<pubDate>Mon, 20 Mar 2017 21:07:08 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5854@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi nfreundl,&#60;/p&#62;
&#60;p&#62;You can find the complete m-file for these examples from within the MATLAB help browser (or in the examples folder in the toolbox). Only parts of the m-file are included in the html description, so it's likely that you are missing some lines of code.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nfreundl on "new grid for reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/new-grid-for-reconstruction#post-5853</link>
			<pubDate>Sun, 19 Mar 2017 06:44:02 +0000</pubDate>
			<dc:creator>nfreundl</dc:creator>
			<guid isPermaLink="false">5853@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;No I'm using the example of k-Wave documentation website&#60;br /&#62;
&#60;a href=&#34;http://www.k-wave.org/documentation/k-wave.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/k-wave.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "new grid for reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/new-grid-for-reconstruction#post-5851</link>
			<pubDate>Mon, 13 Mar 2017 12:13:04 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5851@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi nfreundl,&#60;/p&#62;
&#60;p&#62;Are you using the example m-file that is part of k-Wave (you can open this from the MATLAB help browser by clicking on &#34;open the file&#34;)?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nfreundl on "new grid for reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/new-grid-for-reconstruction#post-5842</link>
			<pubDate>Sat, 25 Feb 2017 21:09:38 +0000</pubDate>
			<dc:creator>nfreundl</dc:creator>
			<guid isPermaLink="false">5842@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I'm new in K-Wave, I've been trying the initial value example with the 2-D with the sensor disc. The simulation worked well. I want to make the reconstruction of the the initial pressure distribution.&#60;br /&#62;
After setting manually the time array, I add those lines&#60;/p&#62;
&#60;p&#62;sensor.time_reversal_boundary_data=sensor_data;&#60;/p&#62;
&#60;p&#62;source.p0=0&#60;br /&#62;
%run the reverse simulation&#60;br /&#62;
p0_recon = kspaceFirstOrder2D(kgrid, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;So far, it works. They suggested to add noise and change the computational grid:&#60;/p&#62;
&#60;p&#62;noise_ratio=2.0;&#60;/p&#62;
&#60;p&#62;for i=1:num_sensor_points&#60;br /&#62;
   sensor_data(i,:)=addNoise(sensor_data(i,:),noise_ratio);&#60;br /&#62;
end&#60;/p&#62;
&#60;p&#62;It's still okay but when it goes to the grid change, it doesn't work. The interpolation works, but not the reverse simulation : I used&#60;br /&#62;
Nx_recon=100;&#60;br /&#62;
Ny_recon=100;&#60;br /&#62;
dx_recon=dx*Nx/Nx_recon;&#60;br /&#62;
dy_recon=dy*Ny/Ny_recon;&#60;/p&#62;
&#60;p&#62;kgrid_recon=makeGrid(Nx_recon,dx_recon,Ny_recon,dy_recon);&#60;/p&#62;
&#60;p&#62;%interpolation of the different k-grids&#60;br /&#62;
sensor_radius_grid_points = round(sensor_radius/kgrid_recon.dx);&#60;br /&#62;
binary_sensor_mask = makeCircle(kgrid_recon.Nx, kgrid_recon.Ny, kgrid_recon.Nx/2, kgrid_recon.Ny/2, sensor_radius_grid_points);&#60;br /&#62;
source.p0=0;&#60;br /&#62;
sensor.time_reversal_boundary_data = interpCartData(kgrid_recon, sensor_data, sensor.mask, binary_sensor_mask);&#60;/p&#62;
&#60;p&#62;p0_recon = kspaceFirstOrder2D(kgrid_recon, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;and I got these errors&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder_inputChecking (line 628)&#60;br /&#62;
                    sensor.time_reversal_boundary_data(:, new_col_pos) = order_index;&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder2D (line 496)&#60;br /&#62;
kspaceFirstOrder_inputChecking;&#60;/p&#62;
&#60;p&#62;Error in changeGridKwave (line 80)&#60;br /&#62;
p0_recon = kspaceFirstOrder2D(kgrid_recon, medium, source, sensor);&#60;/p&#62;
&#60;p&#62;So if someone has a solution, thanks :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
