<?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: Question about the transducer.combine_sensor_data method</title>
		<link>http://www.k-wave.org/forum/topic/question-about-the-transducercombine_sensor_data-method</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:20:41 +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/question-about-the-transducercombine_sensor_data-method" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Question about the transducer.combine_sensor_data method"</title>
			<link>http://www.k-wave.org/forum/topic/question-about-the-transducercombine_sensor_data-method#post-4770</link>
			<pubDate>Thu, 16 Oct 2014 11:33:57 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4770@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Shawn,&#60;/p&#62;
&#60;p&#62;Thanks for your post. After some digging, it seems the problem is that transmit apodization is not currently implemented in the C++ code. If you set &#60;code&#62;transducer.transmit_apodization = &#38;#39;Rectangular&#38;#39;&#60;/code&#62;, hopefully everything should match up (please let me know if it doesn't, or if you already have this set). I've added this to the list to implement for the next release. &#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dsm194 on "Question about the transducer.combine_sensor_data method"</title>
			<link>http://www.k-wave.org/forum/topic/question-about-the-transducercombine_sensor_data-method#post-4769</link>
			<pubDate>Thu, 16 Oct 2014 09:51:33 +0000</pubDate>
			<dc:creator>dsm194</dc:creator>
			<guid isPermaLink="false">4769@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I don't understand the new &#34;transducer.combine_sensor_data&#34; method.  I modified &#34;example_us_bmode_linear_transducer&#34; to additionally generate sensor data using kspaceFirstOrder3DC and to combine the sensor data from kspaceFirstOrder3DC using the above mentioned transducer.combine_sensor_data method.  However, the combined sensor data does not appear to match up with the sensor data generated by kspaceFirstOrder3D. For example, when scan_line_index = 60, mean(abs(combined_sensor_data_3DC(:))) = 10504 whereas mean(abs(sensor_data_3D(:))) = 5270.4.  &#60;/p&#62;
&#60;p&#62;Am I missing a step when processing the sensor_data output by kspaceFirstOrder3DC?&#60;/p&#62;
&#60;p&#62;here are the modifications I made to the example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;% preallocate the storage
scan_lines_3D = zeros(number_scan_lines, kgrid.Nt);
scan_lines_3DC = zeros(number_scan_lines, kgrid.Nt);

% set the input settings
input_args = {...
    &#38;#39;PMLInside&#38;#39;, false, &#38;#39;PMLSize&#38;#39;, [pml_x_size, pml_y_size, pml_z_size], ...
    &#38;#39;DataCast&#38;#39;, DATA_CAST, &#38;#39;DataRecast&#38;#39;, true, &#38;#39;PlotSim&#38;#39;, false};

% run the simulation if set to true, otherwise, load previous results from disk
if RUN_SIMULATION

	% set medium position
	medium_position = 1;

	for scan_line_index = 1:number_scan_lines

				% update the command line status
				disp(&#38;#39;&#38;#39;);
				disp([&#38;#39;Computing scan line &#38;#39; num2str(scan_line_index) &#38;#39; of &#38;#39; num2str(number_scan_lines)]);

				% load the current section of the medium
				medium.sound_speed = sound_speed_map(:, medium_position:medium_position + Ny - 1, :);
				medium.density = density_map(:, medium_position:medium_position + Ny - 1, :);

				% run the simulation
				sensor_data_3D = kspaceFirstOrder3D(kgrid, medium, transducer, transducer, input_args{:});
				sensor_data_3DC = kspaceFirstOrder3DC(kgrid, medium, transducer, transducer, input_args{:});
				combined_sensor_data_3DC = transducer.combine_sensor_data(sensor_data_3DC);

				% extract the scan line from the sensor data
				scan_lines_3D(scan_line_index, :) = transducer.scan_line(sensor_data_3D);
				scan_lines_3DC(scan_line_index, :) = transducer.scan_line(combined_sensor_data_3DC);

		% update medium position
		medium_position = medium_position + transducer.element_width;

	end&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks, Shawn&#60;/p&#62;
&#60;p&#62;k-wave version 1.1&#60;br /&#62;
compiled binary file, SSE3&#60;br /&#62;
MATLAB R2013a Student&#60;br /&#62;
Ubuntu 13.10
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
