<?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: Defining overlaping detectors to reduce computation time</title>
		<link>http://www.k-wave.org/forum/topic/defining-overlaping-detectors-to-reduce-computation-time</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:35:30 +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/defining-overlaping-detectors-to-reduce-computation-time" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Defining overlaping detectors to reduce computation time"</title>
			<link>http://www.k-wave.org/forum/topic/defining-overlaping-detectors-to-reduce-computation-time#post-1126</link>
			<pubDate>Thu, 20 Dec 2012 05:33:28 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">1126@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Pavel,&#60;/p&#62;
&#60;p&#62;If you are storing the complete domain, the output sensor data will be stored in column major order, indexed as x, then y, then z. You could reorder the output data using &#60;code&#62;reshape&#60;/code&#62;, for example:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensordata4D = reshape(sensordata2D, [Nx, Ny, Nz, Nt]);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pavel on "Defining overlaping detectors to reduce computation time"</title>
			<link>http://www.k-wave.org/forum/topic/defining-overlaping-detectors-to-reduce-computation-time#post-1118</link>
			<pubDate>Mon, 17 Dec 2012 16:21:26 +0000</pubDate>
			<dc:creator>Pavel</dc:creator>
			<guid isPermaLink="false">1118@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Thank you very much, it really makes sence for the line sensor in your example. However, we would like to define more complicated sensors in 3D. In order to compute all possible sensor points it seems reasonable to define sensor mask as &#34;sensor.mask(:,:,:)=ones(1:Nx, 1:Ny, 1:Nz)&#34;, so that we can have 4D array &#34;sensordata4D(1:Nx, 1:Ny, 1:Nz, 1:Nt)&#34; that would contain A-scans in all possible sensor points. Then we can combine them as we need.&#60;/p&#62;
&#60;p&#62;Unfortunately, K-Wave output saves everything in 2D array which combines A-scans from all the sensors as sensordata2D(1:Nx*Ny*Nz,1:Nt).&#60;/p&#62;
&#60;p&#62;Could you please advise if there is sure way to extract the data from 2D array &#34;sensordata2D(1:Nx*Ny*Nz,1:Nt)&#34; into 4D array &#34;sensordata4D(1:Nx, 1:Ny, 1:Nz, 1:Nt)&#34;. Is there any mixing up between different elements and their numbers in sensordata2D?&#60;/p&#62;
&#60;p&#62;Would it correctly work as the following:&#60;br /&#62;
for i=1:Nx; for j=1:Ny; for k=1:Nz;&#60;br /&#62;
 sensordata4D(i, j, k, 1:Nt)=sensordata2D(i*j*k,1:Nt);&#60;br /&#62;
end; end; end;&#60;/p&#62;
&#60;p&#62;We can use &#34;ijk cycle&#34; and combine sensordata4D from point-like (xi,yj,zk) detectors, but it ruins initial idea to shorten the computational time. Using just &#34;ij cycle&#34; to combine sensordata4D from line detectors still requires too much time. This is all we tried yet.&#60;/p&#62;
&#60;p&#62;Thank you and Regards,&#60;br /&#62;
Pavel Subochev
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Defining overlaping detectors to reduce computation time"</title>
			<link>http://www.k-wave.org/forum/topic/defining-overlaping-detectors-to-reduce-computation-time#post-1112</link>
			<pubDate>Wed, 12 Dec 2012 00:28:39 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">1112@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Pavel,&#60;/p&#62;
&#60;p&#62;The sensor mask that you define in k-Wave is just a collection of grid points where the data is recorded during the simulation. One possibility would be to define a sensor mask that includes all the possible detector positions, then process the data afterwards into individual A-scans using overlapping points. For example, if your sensor mask is a line, you could use something like &#60;code&#62;data = sensor_data(start_index:start_index + width, :)&#60;/code&#62; and then increment start_index as you wish.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pavel on "Defining overlaping detectors to reduce computation time"</title>
			<link>http://www.k-wave.org/forum/topic/defining-overlaping-detectors-to-reduce-computation-time#post-1109</link>
			<pubDate>Tue, 11 Dec 2012 10:05:19 +0000</pubDate>
			<dc:creator>Pavel</dc:creator>
			<guid isPermaLink="false">1109@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Dr. Treeby and Dr. Cox,&#60;/p&#62;
&#60;p&#62;Could you please advise if K-Wave allows to define detectors that overlap with each other in space? For example, after laser shot #1 you measure A-scan by finite-size detector with aperture D. After laser shot #2 you slightly move your detector at distance DX over the tissue,but DX does not exceed the size D of detector (DX&#38;lt;&#38;lt;D). In real world you can not use two detectors and one laser shot to obtain two A-scans simultaneously, since such detectors will physically overlap.&#60;/p&#62;
&#60;p&#62;Does your K-Wave allow to use &#34;single laser shot&#34; for big number of overlaping detectors? If it could allow that, that would drastically reduce computation time in problem that we try to solve now using K-Wave.&#60;/p&#62;
&#60;p&#62;Thank you and Regards,&#60;br /&#62;
Pavel Subochev,PhD
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
