<?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: How to adapt the code of Example for handling the real data</title>
		<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 09:03:52 +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/how-to-adapt-the-code-of-example-for-handling-the-real-data" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5269</link>
			<pubDate>Fri, 09 Oct 2015 12:47:49 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5269@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbc,&#60;/p&#62;
&#60;p&#62;Yes, the values of &#60;code&#62;sensor_radius&#60;/code&#62; and &#60;code&#62;sensor_angle&#60;/code&#62; should match the radius and arc-angle of the transducer used in the experiment.&#60;/p&#62;
&#60;p&#62;The sound speed in soft tissue only varies by a small amount (e.g. +/- 5%), so provided you use a sensible mean value, many experimental papers have shown you can still reconstruct excellent images (e.g., &#60;a href=&#34;http://www.nature.com/nphoton/journal/v9/n4/index.html&#34;&#62;here&#60;/a&#62;).&#60;/p&#62;
&#60;p&#62;It is possible to correct for the frequency response of your detector over the detector bandwidth by deconvolving this before you run the reconstruction. You will need to be careful how you apply this so you don't amplify noise. Note, if you are using band-limited detectors (e.g., a PZT ultrasound array), you will likely not detect high and low frequency components of the signal, which will affect your reconstructed image (e.g., see &#60;a href=&#34;http://www.k-wave.org/documentation/example_pr_2D_tr_bandlimited_sensors.php&#34;&#62;here&#60;/a&#62;). Unfortunately, there is no way to correct for this if no signal is recorded at these frequencies.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbc on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5257</link>
			<pubDate>Thu, 24 Sep 2015 06:45:44 +0000</pubDate>
			<dc:creator>lbc</dc:creator>
			<guid isPermaLink="false">5257@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr. Treeby&#60;/p&#62;
&#60;p&#62;Appreciate your reply and advice. it indeed to open my mind. &#60;/p&#62;
&#60;p&#62;first i try using the auto focus routine to estimate the sound speed by taking the example of &#60;code&#62;Automatic Sound Speed Selection Example&#60;/code&#62; as a reference and furthermore read the paper &#60;code&#62;Automatic sound speed selection in photoacoustic image reconstruction using an autofocus approach&#60;/code&#62;, as you said in the paper: `If the reconstructed image is rich in features and any image artifacts are comparatively small in magnitude, then the autofocus approach will work correctly to maximize the sharpness of the image feature, However, if the converse if true, then the autofocus approach may incorrectly attempt to maximize the sharpness or the prevalence of edges in the image artifacts. at present, my reconstructed image with the k-Wave toolbox is poor in features and image artifacts are comparatively large in magnitude, so this method do not work.&#60;/p&#62;
&#60;p&#62;here, i have another question about the radius of censor(&#60;code&#62;sensor_radius&#60;/code&#62;), how do i assign the value of this parameter?  should i set the value according to the radius of real transducer?&#60;/p&#62;
&#60;p&#62;now my original data is gathered in the vivo experiment, the sound speed differs among various of organs, so when i set the value of sound speed equal to a scalar, can i finally get the satisfying image?&#60;/p&#62;
&#60;p&#62;at last, you said the quality of the reconstructed image will also be affected by the frequency response of acoustic detectors, how do i implement this aspect in the code? &#60;/p&#62;
&#60;p&#62;thanks a lot, any your reply will be highly appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5236</link>
			<pubDate>Mon, 14 Sep 2015 21:51:31 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5236@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi lbc,&#60;/p&#62;
&#60;p&#62;There are only two parameters that you need to define correctly - the sensor geometry (in your case the radius of the arc angle), and the sound speed. If you get the latter incorrect, the image will be defocused. &#60;/p&#62;
&#60;p&#62;If you don't know the sound speed, you could try using the autofocus routine to estimate the sound speed that gives you the sharpest image (see the &#60;a href=&#34;http://www.k-wave.org/documentation/example_pr_2D_tr_autofocus.php&#34;&#62;Automatic Sound Speed Selection Example&#60;/a&#62;). &#60;/p&#62;
&#60;p&#62;Keep in mind that the quality of the reconstructed image will also be affected by the size and frequency response of your acoustic detectors, etc.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lbc on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5221</link>
			<pubDate>Thu, 27 Aug 2015 14:33:08 +0000</pubDate>
			<dc:creator>lbc</dc:creator>
			<guid isPermaLink="false">5221@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr. Treeby and Dr. Cox&#60;br /&#62;
I am appreciated for your k-Wave toolbox, it indeed to facilitate the photoacoustic tomography reconstruction. here is my question. there is a photoacoustic tomography system in my lab. the original data acquisition equipment is an arc transducer, the arc angle is 3*pi/2. at present I launch an experiment and  get the original tomography data. so I want to use the k-Wave toolbox to reconstruct the tomography image. I reference the example: 2D Time Reversal For A Circular Sensor and assign the time reversal data equal to my tomography data, then modify the sensor radius and number of elements, at last I run the m-file, but the result image is so far from the original tomography image.&#60;br /&#62;
can you give me some advice for the present situation?  when using the example: 2D Time Reversal For A Circular Sensor for processing the real tomography data, how to set up the corresponding parameters in order to get the relative satisfying image?&#60;br /&#62;
your reply will be appreciated! thanks a lot!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>puyang on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5219</link>
			<pubDate>Mon, 24 Aug 2015 20:54:05 +0000</pubDate>
			<dc:creator>puyang</dc:creator>
			<guid isPermaLink="false">5219@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear professor:&#60;br /&#62;
Thanks a lot. I am doing microscopy. I am studying it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5212</link>
			<pubDate>Fri, 21 Aug 2015 10:51:33 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5212@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi puyang,&#60;/p&#62;
&#60;p&#62;Are you performing PA microscopy or tomography? &#60;/p&#62;
&#60;p&#62;If you are doing microscopy, then no image reconstruction is required (see &#60;a href=&#34;http://www.medphys.ucl.ac.uk/research/mle/pdf_files/Review_Roy_Soc_Interface_1.pdf&#34;&#62;this review paper&#60;/a&#62; for example). Just assemble your acquired time traces into a matrix, and visualise them using the appropriate axes scaling factors (i.e., converting time to depth using the sound speed).&#60;/p&#62;
&#60;p&#62;If you are doing tomography, then image reconstruction is required. In the k-Wave example you mention, the simulation is both generating the &#34;experimental data&#34; (where &#60;code&#62;p0&#60;/code&#62; is the initial pressure distribution), and then performing the reconstruction. You should comment out the first part of the example. The experimental data (measured voltage) is then used to replace &#60;code&#62;sensor_data&#60;/code&#62; in this line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% assign the time reversal data
sensor.time_reversal_boundary_data = sensor_data;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if you're doing tomography, and I can give some more details on how to set the other variables.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>puyang on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5200</link>
			<pubDate>Wed, 12 Aug 2015 14:30:47 +0000</pubDate>
			<dc:creator>puyang</dc:creator>
			<guid isPermaLink="false">5200@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;In short question, what is the p0 input? Is p0 the measured voltage by oscilloscope?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>puyang on "How to adapt the code of Example for handling the real data"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-adapt-the-code-of-example-for-handling-the-real-data#post-5198</link>
			<pubDate>Tue, 11 Aug 2015 21:20:37 +0000</pubDate>
			<dc:creator>puyang</dc:creator>
			<guid isPermaLink="false">5198@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dr. Cox and Dr. Treeby&#60;br /&#62;
I am new to the PA field. I now build up my PA microscope. I use a focused transducer to do 2D scan of my sample and I see good results in the oscilloscope. I now have the PA data and I hope to use the “Example: 3D Time Reversal For A Planar Sensor&#34; to reconstruct 3D image. However, I have problem to do it since I do not know how to replace the “variables” using my real data in the code.&#60;br /&#62;
Can you give some instruction for this? For example, I now have a Nx by Ny by Nz raw data from the measurement, how to set the variable of “PML_size”, “kgrid”, “p0” “sensor.mask” and “sensor_data” etc to get start.&#60;/p&#62;
&#60;p&#62;Thanks a lot. Your support is highly appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
