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

		<item>
			<title>Bradley Treeby on "time-reversal reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/time-reversal-reconstruction#post-5423</link>
			<pubDate>Thu, 17 Mar 2016 13:19:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5423@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bernhard,&#60;/p&#62;
&#60;p&#62;As mentioned above, you can use the C++ code directly for time reversal, but you need to manually reverse your recorded boundary data, and then use this as a Dirichlet source in your simulation. In steps:&#60;/p&#62;
&#60;p&#62;(1) Instead of assigning your boundary data to &#60;code&#62;sensor.time_reversal_boundary_data&#60;/code&#62;, reverse it in time and assign to &#60;code&#62;source.p&#60;/code&#62;, i.e.,&#60;/p&#62;
&#60;p&#62;&#60;code&#62;source.p = flipdim(boundary_data, 2);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;(2) Set the source to be a Dirichlet boundary condition&#60;/p&#62;
&#60;p&#62;&#60;code&#62;source.p_mode = &#38;#39;dirichlet&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;(3) Instead of assigning the position of your detectors to &#60;code&#62;sensor.mask&#60;/code&#62;, assign it to &#60;code&#62;source.p_mask&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;(4) Set &#60;code&#62;sensor.record = {&#38;#39;p_final&#38;#39;}&#60;/code&#62; to record the final (i.e., reconstructed) pressure field. The sensor mask isn't used in this case, so anything will do. Your reconstructed image will be contained in the field &#60;code&#62;sensor_data.p_final&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If you are stuck on how to get started with time-reversal using the normal syntax, there are several examples included in the toolbox.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bernhardkaplan on "time-reversal reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/time-reversal-reconstruction#post-5404</link>
			<pubDate>Fri, 26 Feb 2016 15:59:37 +0000</pubDate>
			<dc:creator>bernhardkaplan</dc:creator>
			<guid isPermaLink="false">5404@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I would like to use k-wave's C++ code on a compute cluster without matlab via the command line and to do time-reversal reconstruction instead of FFT, but I am not able to create the HDF5 files using &#60;code&#62;kspaceFirstOrder3D(kgrid, medium, source, sensor, &#38;#39;SaveToDisk&#38;#39;, filename);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;When looking at &#60;code&#62;kspaceFirstOrder3DC.m&#60;/code&#62; &#60;code&#62;time_rev&#60;/code&#62; is set to true if the sensor has a &#60;code&#62;time_reversal_boundary_data&#60;/code&#62; field -- however, when calling the kspaceFirstOrder3D function, an error is raised with the message &#34;The optional input 'SaveToDisk' is currently only compatible with forward simulations using a non-zero binary sensor mask&#34;, but the sensor mask is non-zero.&#60;/p&#62;
&#60;p&#62;Could you explain in more detail how to use the C++ for time-reversal reconstruction instead of FFT? An example script would be fantastic (I was using the &#60;code&#62;example_pr_3D_TR_planar_sensor.m&#60;/code&#62; as starting point so far).&#60;/p&#62;
&#60;p&#62;Many thanks in advance and best regards,&#60;br /&#62;
Bernhard Kaplan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "time-reversal reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/time-reversal-reconstruction#post-2028</link>
			<pubDate>Thu, 04 Apr 2013 08:51:30 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">2028@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Chao,&#60;/p&#62;
&#60;p&#62;The original method of using time-reversal (i.e., setting &#60;code&#62;sensor.time_reversal_boundary_data&#60;/code&#62;) is not included in the C++ code. However, you can use time-reversal in the more general way of reversing the recorded boundary data and applying it as a Dirichlet boundary condition. If you look inside the function &#60;code&#62;kspaceFirstOrder3DC&#60;/code&#62;, you can see an example of how this is done. The net result is the same via both methods.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>huangchao on "time-reversal reconstruction"</title>
			<link>http://www.k-wave.org/forum/topic/time-reversal-reconstruction#post-2027</link>
			<pubDate>Thu, 04 Apr 2013 01:54:47 +0000</pubDate>
			<dc:creator>huangchao</dc:creator>
			<guid isPermaLink="false">2027@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;It seems that the time-reversal reconstruction is not available in the current release of the C++ code. Is this right? I just want to confirm.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Chao
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
